/* launchpad-board look: near-black slate, green accents, rounded cards, Inter. Shared by every page. */
:root {
  --bg: #15161b; --card: #1d1e26; --card2: #24252f; --line: #2c2e3a; --hover: #2a2c37;
  --text: #f4f4f5; --muted: #9a9cab; --g: #86efac; --g2: #4ade80; --gd: #14532d; --r: #f87171; --y: #fde047; --b: #60a5fa;
  --sans: 'Inter', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; scrollbar-color: #3a3c4a transparent; scrollbar-width: thin; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); }
a { color: var(--g); text-decoration: none; } a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.up { color: var(--g2); } .down { color: var(--r); }

/* header + page tabs */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 10px 18px; background: rgba(21, 22, 27, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); } .brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; image-rendering: pixelated; }
.brand b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.mode { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #3f3a12; color: var(--y); text-transform: uppercase; letter-spacing: .04em; }
.mode.live { background: #3b1b1d; color: var(--r); } .mode.live::before { content: '● '; }
.tabs { display: flex; gap: 4px; margin-left: 10px; }
.tabs a { color: var(--muted); font-weight: 600; font-size: 14px; padding: 7px 12px; border-radius: 8px; }
.tabs a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.tabs a.on { color: var(--text); background: var(--card2); }
.links { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.chip { font: 600 12px var(--sans); padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.chip:hover { background: var(--hover); text-decoration: none; }
.btn { font: 700 13px var(--sans); padding: 8px 16px; border-radius: 8px; background: var(--g); color: #0b1a10; border: 0; cursor: pointer; }
.btn:hover { background: #a7f3c0; text-decoration: none; }

.wrap { max-width: 1680px; margin: 0 auto; padding: 16px 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-width: 0; }
.head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.head h2 { margin: 0; font-size: 16px; font-weight: 700; } .head small { font-size: 12px; color: var(--muted); }
.empty { color: var(--muted); font-size: 13px; padding: 18px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; }
.foot { max-width: 1680px; margin: 0 auto; padding: 0 18px 20px; color: var(--muted); font-size: 12px; }

/* ---------- live page ---------- */
.live { display: grid; grid-template-columns: 290px minmax(420px, 1fr) 360px; gap: 16px; align-items: start; }
.botcard { display: grid; justify-items: center; gap: 10px; }
#mascot { width: 120px; height: 158px; image-rendering: pixelated; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.bubble { width: 100%; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; min-height: 76px; font-size: 14px; line-height: 1.45; }
.bubble .who { display: block; font-size: 12px; font-weight: 700; color: var(--g); margin-bottom: 2px; }
.caret { display: inline-block; width: 7px; height: 14px; background: var(--g); vertical-align: -2px; margin-left: 2px; animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.minis div { background: var(--card2); border-radius: 10px; padding: 9px 11px; } .minis span { display: block; font-size: 11px; color: var(--muted); } .minis b { font-size: 18px; font-weight: 800; }
.lvlbar { width: 100%; } .lvlbar .row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); } .lvlbar .row b { color: var(--y); font-size: 15px; }
.lvlbar .xp { height: 8px; border-radius: 999px; background: #33354a; overflow: hidden; margin-top: 4px; } .lvlbar .xp i { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, var(--y)); }

/* PillBot's screen: the coin it's on, with the part it's reading lit up */
.screen { position: relative; }
.screenbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; margin: -16px -16px 14px; border-bottom: 1px solid var(--line); background: #191a21; border-radius: 14px 14px 0 0; font-size: 12px; color: var(--muted); }
.screenbar .dots { display: flex; gap: 5px; } .screenbar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3c4a; }
.screenbar .url { flex: 1; background: var(--card2); border-radius: 7px; padding: 4px 10px; font-family: var(--mono); font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.screenbar .rec { color: var(--r); font-weight: 700; } .screenbar .rec::before { content: '● '; animation: blink 1.2s infinite; }
.coinview { display: grid; grid-template-columns: 150px 1fr; gap: 16px; }
.zone { position: relative; border-radius: 12px; border: 2px solid transparent; transition: border-color .2s, box-shadow .2s, background .2s; }
.zone.looking { border-color: var(--y); box-shadow: 0 0 0 4px rgba(253, 224, 71, .15), 0 0 24px rgba(253, 224, 71, .25); background: rgba(253, 224, 71, .04); }
.zone.looking::after { content: '👀 PillBot is reading this'; position: absolute; right: 8px; top: -11px; font: 700 11px var(--sans); background: var(--y); color: #1b1a0a; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.zone[data-area="image"].looking::after { content: '👀 looking'; }
.cv-img { width: 150px; height: 150px; border-radius: 12px; background: #30323f; display: grid; place-items: center; font-size: 48px; overflow: hidden; }
.cv-img img { width: 100%; height: 100%; object-fit: cover; }
.cv-name { padding: 4px 8px; } .cv-name b { font-size: 24px; font-weight: 800; letter-spacing: -.01em; } .cv-name small { font-size: 14px; color: var(--muted); margin-left: 8px; }
.cv-mc { color: var(--g); font-weight: 700; font-size: 14px; padding: 0 8px; }
.cv-dev { padding: 4px 8px; font-size: 13px; color: var(--muted); }
.cv-desc { margin-top: 12px; padding: 10px 12px; background: var(--card2); font-size: 14px; line-height: 1.5; min-height: 54px; }
.cv-desc.none { color: var(--muted); font-style: italic; }
.cv-soc { margin-top: 10px; padding: 8px 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.cv-soc span { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--card2); color: var(--muted); }
.cv-soc span.ok { background: var(--gd); color: var(--g); }
.cv-chart { margin-top: 10px; padding: 8px; } .cv-chart canvas { width: 100%; height: 200px; display: block; }
.cv-prog { height: 6px; border-radius: 999px; background: #33354a; overflow: hidden; margin: 6px 8px 0; } .cv-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--g2), var(--g)); }
.cv-verdict { position: absolute; right: 22px; top: 150px; font: 900 18px var(--sans); letter-spacing: .1em; padding: 6px 14px; border: 3px solid; border-radius: 8px; transform: rotate(8deg); text-transform: uppercase; background: rgba(21, 22, 27, .85); }
.cv-verdict.pass { color: var(--r); border-color: var(--r); } .cv-verdict.watch { color: var(--y); border-color: var(--y); } .cv-verdict.holding { color: var(--g2); border-color: var(--g2); }
.cursor { position: absolute; z-index: 3; width: 22px; height: 22px; pointer-events: none; transition: left .45s cubic-bezier(.3, .9, .3, 1), top .45s cubic-bezier(.3, .9, .3, 1); filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .5)); }
.idle-screen { display: grid; place-items: center; min-height: 300px; color: var(--muted); }

/* every move */
.moves { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 520px; overflow: hidden; }
.moves li { display: grid; grid-template-columns: 58px 22px 1fr; gap: 6px; align-items: start; padding: 7px 9px; border-radius: 10px; background: var(--card2); font-size: 13px; line-height: 1.4; animation: in .3s ease-out; }
.moves li:first-child { border: 1px solid rgba(253, 224, 71, .5); background: #2a2a24; }
.moves li .t { font-family: var(--mono); font-size: 11px; color: var(--muted); padding-top: 1px; }
.moves li.scan { opacity: .65; }
.moves li.buy, .moves li.fill { background: #2a2a1b; } .moves li.sell { background: #1f2a22; } .moves li.verdict { background: #22232c; font-weight: 600; }
@keyframes in { from { opacity: 0; transform: translateY(-4px); } }

/* coin cards (board, positions) */
.board { display: grid; gap: 10px; }
.coin { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: var(--card2); border: 2px solid transparent; transition: background .15s, border-color .2s; color: var(--text); position: relative; }
.coin:hover { background: var(--hover); text-decoration: none; }
.coin.looking { border-color: var(--y); box-shadow: 0 0 18px rgba(253, 224, 71, .2); }
.coin.looking::before { content: '👀 PillBot clicked this'; position: absolute; left: 10px; top: -10px; font: 700 10px var(--sans); background: var(--y); color: #1b1a0a; padding: 1px 7px; border-radius: 999px; }
.coin.held { border-color: var(--g2); } .coin.held::before { content: '💊 holding'; position: absolute; left: 10px; top: -10px; font: 700 10px var(--sans); background: var(--g2); color: #0b1a10; padding: 1px 7px; border-radius: 999px; }
.coin .img { width: 64px; height: 64px; border-radius: 10px; background: #30323f; display: grid; place-items: center; font-size: 26px; overflow: hidden; }
.coin .img img { width: 100%; height: 100%; object-fit: cover; }
.coin .nm { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .coin .nm small { font-weight: 500; color: var(--muted); margin-left: 6px; }
.coin .mc { font-size: 12px; color: var(--g); font-weight: 600; } .coin .sub { font-size: 12px; color: var(--muted); }
.coin .pct { font-size: 18px; font-weight: 800; text-align: right; } .coin .pct small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.prog { height: 6px; border-radius: 999px; background: #33354a; overflow: hidden; margin-top: 6px; } .prog i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--g2), var(--g)); }
.tag { display: inline-block; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.tag.pass { background: #3b1b1d; color: var(--r); } .tag.watch { background: #3f3a12; color: var(--y); } .tag.bought, .tag.closed { background: var(--gd); color: var(--g); } .tag.studying { background: #1b2a3f; color: var(--b); }

/* ---------- research page ---------- */
.research { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.rcard { display: grid; gap: 8px; }
.rcard .top2 { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.rcard .img { width: 56px; height: 56px; border-radius: 10px; background: #30323f; display: grid; place-items: center; font-size: 24px; overflow: hidden; } .rcard .img img { width: 100%; height: 100%; object-fit: cover; }
.rcard .nm b { font-size: 17px; } .rcard .nm small { color: var(--muted); margin-left: 6px; }
.rcard .k { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.rcard p { margin: 0; } .rcard .thesis { background: var(--card2); border-left: 3px solid var(--g2); padding: 8px 10px; border-radius: 6px; }
.rcard .thesis.no { border-left-color: var(--r); }
.rcard ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); } .rcard ul.flags { color: var(--r); }
.rcard .res { font-weight: 800; font-size: 16px; }

/* ---------- brain page ---------- */
.brainpage { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
.bigl { font-size: 56px; font-weight: 900; color: var(--y); line-height: 1; } .xpbig { height: 12px; border-radius: 999px; background: #33354a; overflow: hidden; margin: 10px 0 4px; } .xpbig i { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, var(--y)); }
.bstats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; } .bstats div { background: var(--card2); border-radius: 10px; padding: 10px; } .bstats b { display: block; font-size: 20px; font-weight: 800; } .bstats span { font-size: 12px; color: var(--muted); }
.rules { display: flex; flex-wrap: wrap; gap: 8px; } .rules span { padding: 6px 10px; border-radius: 8px; background: var(--card2); border: 1px solid var(--line); font-size: 13px; }
.lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lessons li { background: var(--card2); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: 54px 1fr; gap: 10px; }
.lessons li b { font-size: 13px; color: var(--y); } .lessons li small { display: block; font-size: 11px; color: var(--muted); }

/* ---------- trades page ---------- */
.tradespage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.money { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; } .money div { background: var(--card2); border-radius: 10px; padding: 11px 12px; } .money span { display: block; font-size: 12px; color: var(--muted); } .money b { font-size: 21px; font-weight: 800; }
table.trades { width: 100%; border-collapse: collapse; font-size: 13px; }
table.trades th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 9px 12px; background: var(--card2); }
table.trades td { padding: 9px 12px; border-top: 1px solid var(--line); } table.trades td:nth-child(2) { color: var(--muted); } table.trades .r { text-align: right; font-weight: 700; white-space: nowrap; }
.proofbody { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; }
#qr { width: 120px; height: 120px; background: #fff; border-radius: 10px; padding: 6px; } #qr img { width: 100%; height: 100%; image-rendering: pixelated; }

@media (max-width: 1250px) { .live { grid-template-columns: 1fr 1.4fr; } .live > :first-child { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; } }
@media (max-width: 900px) { .live, .brainpage, .tradespage { grid-template-columns: 1fr; } .tabs { display: none; } .money { grid-template-columns: 1fr 1fr; } .coinview { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
