:root { --bg: #050505; --panel: #0A0F0B; --line: #1C2A20; --line2: #2A5A3A; --green: #4ADE80; --white: #FFFFFF; --text: #F2F2F2; --soft: #C9D1CB; --dim: #8A9A8F; --red: #F87171; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); }
body { color: var(--text); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 15px; line-height: 1.6; overflow-x: hidden; }
a { color: var(--green); text-decoration: none; } a:hover { color: var(--white); }
.page { position: relative; min-height: 100vh; overflow: hidden; overflow: clip; }
.tiles { position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 0; }
.scan { position: fixed; inset: 0; pointer-events: none; z-index: 50; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); }
.waves { position: absolute; top: 0; left: 0; width: 100%; height: 860px; pointer-events: none; background: var(--bg); -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.wrap { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; }
.blink { animation: blink 1s steps(1) infinite; } .live { animation: pulse 1.6s ease-in-out infinite; }
@keyframes blink { 0%,49% { opacity: 1 } 50%,100% { opacity: 0 } } @keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

header.top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand b { font-weight: 800; letter-spacing: .08em; font-size: 16px; }
.tag { font-size: 12px; color: var(--green); border: 1px solid var(--line2); padding: 2px 8px; }
.right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ca { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border: 1px solid var(--line2); background: #07110A; font-size: 12px; max-width: 100%; }
.ca b { color: var(--green); letter-spacing: .08em; } .ca span { color: var(--white); overflow-wrap: anywhere; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--green); color: var(--green); font: 700 12px/1 inherit; font-family: inherit; letter-spacing: .06em; background: transparent; cursor: pointer; }
.btn.solid { background: var(--green); color: var(--bg); } .btn.solid:hover { color: var(--bg); background: #6ff09b; }
.btn.small { min-height: 28px; padding: 0 10px; font-size: 11px; }
.btn.ghost { border-color: var(--line); color: var(--text); }
.btn.big { min-height: 48px; padding: 0 24px; font-size: 14px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.chip { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); font-size: 12px; letter-spacing: .06em; }
.chip span { color: var(--dim); } .chip b { color: var(--white); }
.boot { display: flex; flex-direction: column; align-items: flex-end; font-size: 10px; line-height: 1.5; color: #6F7F74; letter-spacing: .04em; }
.boot i { font-style: normal; color: var(--green); }

.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 40px 0 64px; }
.hero-left { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.title-wrap { position: relative; width: 100%; max-width: 640px; height: clamp(200px, 30vw, 330px); cursor: crosshair; }
.title-wrap canvas, .botbox canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lede { margin: 0; max-width: 560px; font-size: 18px; color: var(--soft); }
.hero-right { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.botbox { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1/1; border: 1px solid #1F3A28; background: rgba(5,5,5,.6); cursor: crosshair; }
.botbox .h, .botbox .v { position: absolute; border-color: #1F3A28; border-style: dashed; border-width: 0; }
.botbox .h { left: 0; right: 0; top: 50%; border-top-width: 1px; } .botbox .v { top: 0; bottom: 0; left: 50%; border-left-width: 1px; }
.botbox .spec { position: absolute; top: 14px; right: 16px; text-align: right; font-size: 11px; line-height: 1.5; color: var(--dim); }
.botbox .foot { position: absolute; bottom: 14px; left: 16px; font-size: 11px; color: var(--dim); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border: 1px solid var(--line); background: var(--panel); }
.stats > div { padding: 20px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.stats > div:last-child { border-right: 0; }
.stats span { font-size: 12px; color: var(--dim); letter-spacing: .08em; } .stats b { font-size: 24px; color: var(--white); } .stats b.g { color: var(--green); }

section.block { padding: 96px 0 0; display: flex; flex-direction: column; gap: 24px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
h2 { margin: 0; font-size: 32px; font-weight: 800; color: var(--white); }
.note { font-size: 12px; color: var(--dim); }
.agents { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.agent { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px dashed #2A3A2E; color: var(--dim); }
.agent.on { border: 1px solid var(--green); background: #07110A; color: var(--text); }
.agent:hover { border-color: var(--green); color: var(--text); }
.agent .top2 { display: flex; justify-content: space-between; font-size: 12px; }
.agent canvas { width: 100%; height: 150px; }
.agent .nm { font-size: 22px; font-weight: 800; color: var(--white); }
.agent .bio { font-size: 13px; color: var(--soft); }
.agent .bottom { display: flex; justify-content: space-between; font-size: 12px; border-top: 1px solid var(--line); padding-top: 12px; }

.feed { display: flex; flex-direction: column; border: 1px solid var(--line); }
.call { display: flex; align-items: flex-start; gap: 20px; padding: 18px 24px; border-bottom: 1px solid var(--line); background: rgba(5,5,5,.88); }
.call:last-child { border-bottom: 0; }
.caller { flex: 0 0 76px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--dim); font-size: 10px; letter-spacing: .06em; text-align: center; }
.caller:hover { color: var(--white); }
.caller canvas { width: 64px; height: 64px; }
.cbody { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tokrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.tokimg { position: relative; flex: 0 0 52px; width: 52px; height: 52px; border: 1px solid var(--line2); background: #0d1a11; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--green); font-weight: 800; font-size: 20px; }
.tokimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tokid { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tokname { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.tokname a { font-size: 22px; font-weight: 800; color: var(--white); letter-spacing: .02em; }
.tokname a:hover { color: var(--green); }
.tokname > span:not(.badge) { color: var(--dim); font-size: 13px; }
.tokmeta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--dim); }
.tokmeta a { color: var(--green); }
.tokstats { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-left: auto; }
.tokstats div { display: flex; flex-direction: column; align-items: flex-end; }
.tokstats span { font-size: 11px; color: var(--dim); }
.tokstats b { font-size: 15px; color: var(--white); }
.tokstats div b { font-size: 16px; }
.tokstats em { font-style: normal; font-weight: 800; font-size: 26px; color: var(--white); line-height: 1.1; }
.tokstats em.up { color: var(--green); } .tokstats em.down { color: var(--red); } .tokstats em.big { text-shadow: 0 0 14px rgba(74,222,128,.5); }
.tokstats b.up { color: var(--green); } .tokstats b.down { color: var(--red); }
.callacts { gap: 8px; }
.ca-copy { font: inherit; font-size: 12px; color: var(--white); background: #0d1a11; border: 1px solid var(--line2); padding: 0 8px; min-height: 24px; cursor: pointer; }
.ca-copy:hover { border-color: var(--green); color: var(--green); }
.chartbox { width: 100%; height: 380px; border: 1px solid var(--line2); background: #000; }
.chartbox iframe { width: 100%; height: 100%; border: 0; display: block; }
.call .thesis { margin: 0; color: var(--soft); max-width: 900px; }
.call .meta { font-size: 11px; color: var(--dim); }
.pnl { font-size: 22px; font-weight: 700; } .up { color: var(--green); } .down { color: var(--red); }
.links { display: flex; gap: 16px; font-size: 12px; }
.empty { padding: 40px 24px; text-align: center; color: var(--dim); }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border: 1px solid var(--line); }
.how > div { padding: 28px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.how > div:last-child { border-right: 0; }
.how i { color: var(--green); font-size: 13px; font-style: normal; } .how b { color: var(--white); font-size: 17px; } .how span { font-size: 13px; color: var(--dim); }
footer.bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 96px; padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.badge { font-size: 11px; padding: 2px 8px; border: 1px solid var(--line2); color: var(--green); }
@media (max-width: 640px) { .right { align-items: flex-start; } h2 { font-size: 24px; } .call { flex-direction: column; } .caller { flex-direction: row; } .tokstats { margin-left: 0; } .tokstats div { align-items: flex-start; } }

/* new callout arriving live (no page reload) */
@keyframes callIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes callGlow { 0% { box-shadow: inset 3px 0 0 var(--green), 0 0 0 1px var(--green); background: rgba(74,222,128,.10); } 100% { box-shadow: inset 3px 0 0 transparent, 0 0 0 1px transparent; } }
.call.is-new { animation: callIn .5s ease-out, callGlow 6s ease-out; }
.call.is-new .tokname::after { content: 'NEW'; font-size: 11px; color: var(--bg); background: var(--green); padding: 1px 6px; letter-spacing: .08em; }
@media (prefers-reduced-motion: reduce) { .call.is-new { animation: none; } }

.posted:empty { display: none; }
.posted { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 10px 12px; border: 1px solid var(--line2); background: #07110A; font-size: 13px; }
.posted-tag { color: var(--bg); background: var(--green); font-size: 11px; padding: 1px 6px; letter-spacing: .06em; }
.posted-text { color: var(--white); flex: 1 1 300px; }

.tokstats b.big { color: var(--green); text-shadow: 0 0 12px rgba(74,222,128,.45); }

/* live callouts + top 5 board on the right */
.feedwrap { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .feedwrap { grid-template-columns: 1fr; } .topbox { order: -1; } }
.topbox .topicon { width: 34px; height: 34px; flex: 0 0 34px; }
.topbox { position: sticky; top: 16px; border: 1px solid var(--green); background: rgba(7,17,10,.94); padding: 16px; }
.topbox h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: .1em; color: var(--white); }
.topbox h3 span { color: var(--dim); font-weight: 400; font-size: 11px; }
.topbox ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.topbox li a { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); color: var(--text); background: rgba(5,5,5,.7); }
.topbox li a:hover { border-color: var(--green); }
.topbox .rank { color: var(--green); font-weight: 800; width: 26px; }
.tokimg.sm { flex: 0 0 34px; width: 34px; height: 34px; font-size: 14px; }
.topbox .tinfo { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.topbox .tinfo b { color: var(--white); font-size: 14px; } .topbox .tinfo small { color: var(--dim); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbox .tx { font-weight: 800; font-size: 18px; color: var(--white); } .topbox .tx.hot { color: var(--green); text-shadow: 0 0 12px rgba(74,222,128,.45); }
.topempty { color: var(--dim); font-size: 12px; padding: 8px; }

/* agents grid + top 5 board side by side */
.agentswrap { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
.agentswrap .agents { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.agentswrap .agent { padding: 14px 12px; gap: 8px; }
.agentswrap .agent .top2 { font-size: 10px; flex-wrap: wrap; gap: 2px 6px; }
.agentswrap .agent .bottom { flex-direction: column; gap: 4px; font-size: 11px; }
@media (max-width: 900px) { .agentswrap .agents { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.agentswrap .agent canvas { height: 120px; }
.agentswrap .agent .nm { font-size: 17px; }
.agentswrap .agent .bio { font-size: 12px; }
.agentswrap .topbox { position: static; }
@media (max-width: 1100px) { .agentswrap { grid-template-columns: 1fr; } }

/* X multipliers: always green, glowing, and the biggest numbers on a callout */
.tokstats div b { font-size: 13px; color: var(--soft); font-weight: 500; }
.tokstats em, .tokstats em.xg { font-size: 30px; color: var(--green); text-shadow: 0 0 10px rgba(74,222,128,.65), 0 0 22px rgba(74,222,128,.35); }
.tokstats div:first-child b { font-size: 16px; color: var(--white); }
.topbox .tx, .topbox .tx.hot { color: var(--green); text-shadow: 0 0 10px rgba(74,222,128,.65), 0 0 22px rgba(74,222,128,.35); }
#s-avg, #s-pnl { color: var(--green) !important; text-shadow: 0 0 10px rgba(74,222,128,.6); }

.stats a.statlink { text-decoration: none; } .stats a.statlink:hover b { text-shadow: 0 0 14px var(--green); }
.stats #s-best b { text-shadow: 0 0 12px rgba(74,222,128,.55); }

.agent .wcopy { align-self: flex-start; white-space: nowrap; font: inherit; font-size: 11px; letter-spacing: .06em; color: var(--green); background: rgba(74,222,128,.06); border: 1px solid #1A4027; padding: 4px 8px; cursor: pointer; }
.agent .wcopy:hover { border-color: var(--green); }
.agent .wcopy.off { color: #8A9A8F; cursor: default; }

/* buyback callouts of our own coin */
.badge.house { background: var(--green); color: #000; font-weight: 700; letter-spacing: .08em; }

/* new-callout alerts */
.toasts { position: fixed; right: 16px; bottom: 64px; z-index: 50; display: flex; flex-direction: column; gap: 8px; width: min(390px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(5,12,8,.96); border: 1px solid var(--green); box-shadow: 0 0 22px rgba(74,222,128,.35); color: var(--white); text-decoration: none; animation: toastIn .35s cubic-bezier(.2,.9,.3,1.2); }
.toast .timg { position: relative; width: 44px; height: 44px; flex: none; border: 1px solid var(--green); overflow: hidden; background: #0b1a10; }
.toast .timg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.toast .tini { position: absolute; inset: 0; display: grid; place-items: center; color: var(--green); font-weight: 800; font-size: 18px; }
.toast span { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.toast b { font-size: 11px; letter-spacing: .12em; color: var(--green); }
.toast i { font-style: normal; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast em { font-style: normal; color: var(--green); font-weight: 700; }
.toast button { background: none; border: 0; color: #8A9A8F; cursor: pointer; font: inherit; padding: 2px 4px; }
.toast:hover { border-color: var(--white); }
.toast.out { opacity: 0; transform: translateX(30px); transition: opacity .35s, transform .35s; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.soundbtn { position: fixed; right: 16px; bottom: 16px; z-index: 50; font: inherit; font-size: 11px; letter-spacing: .08em; color: var(--green); background: rgba(5,12,8,.92); border: 1px solid #1A4027; padding: 7px 10px; cursor: pointer; }
.soundbtn:hover { border-color: var(--green); }
.soundbtn { display: inline-flex; align-items: center; gap: 7px; } .soundbtn svg { filter: drop-shadow(0 0 4px rgba(74,222,128,.6)); } .soundbtn.off { color: #8A9A8F; } .soundbtn.off svg { filter: none; }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* agent thinking terminal */
.term { border: 1px solid var(--green); background: rgba(3,8,5,.94); box-shadow: 0 0 24px rgba(74,222,128,.12) inset; }
.term-head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #1A4027; font-size: 11px; letter-spacing: .12em; color: #8A9A8F; }
.term-dot { color: var(--green); animation: blink 1.4s steps(2) infinite; }
.term-body { height: 320px; overflow: hidden; padding: 12px 14px; font-size: 13px; line-height: 1.65; color: #9FD8B0; display: flex; flex-direction: column; justify-content: flex-end; }
.term-body .tl { white-space: pre-wrap; word-break: break-word; }
.term-body .tl:last-child::after { content: '_'; color: var(--green); animation: blink 1s steps(2) infinite; }
.term-body .tl-dim { color: #6B7D71; }
.term-body .tl-alert { color: var(--green); font-weight: 700; }
.term-body .tl-why { color: var(--white); }
.term-body .tl-call { color: var(--green); font-weight: 700; text-shadow: 0 0 10px rgba(74,222,128,.6); }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .term-dot, .term-body .tl:last-child::after { animation: none; } }

/* agents that aren't online yet: blurred until launch */
.agent.locked canvas, .agent.locked .nm, .agent.locked .bio { filter: blur(7px); opacity: .55; user-select: none; }
.agent.locked { cursor: default; }
.tabs a.locked { filter: blur(3px); }
.agent-locked #icon, .agent-locked #name, .agent-locked .traits { filter: blur(8px); opacity: .6; user-select: none; }
