:root {
  --bg: #000;
  --card: #0c0c0c;
  --card2: #121212;
  --line: rgba(255,255,255,.08);
  --line2: rgba(255,255,255,.14);
  --ink: #f2f2ee;
  --soft: #c9c9c4;
  --dim: #7a7a76;
  --up: #19d45b;
  --dn: #ff4d4d;
  --orange: #ff7a1a;
  --sans: "Figtree", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --serif: "Fraunces", serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.up { color: var(--up); } .dn { color: var(--dn); }

.mark, .brand { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.mark i, .brand i { display: inline-flex; gap: 3px; }
.mark i b, .brand i b { width: 9px; height: 9px; border-radius: 50%; display: block; }
.pill { font-family: var(--mono); font-size: 12px; color: var(--dim); display: inline-flex; align-items: center; background: rgba(10,10,10,.85); border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); white-space: nowrap; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #19b24b; margin-right: 8px; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(25,178,75,.6); } 70% { box-shadow: 0 0 0 8px rgba(25,178,75,0); } 100% { box-shadow: 0 0 0 0 rgba(25,178,75,0); } }

/* ---------- intro ---------- */
#intro { position: fixed; inset: 0; z-index: 10; background: #000; overflow: hidden; transition: transform .9s cubic-bezier(.7,0,.3,1), opacity .9s ease; }
#intro.leaving { transform: scale(7); opacity: 0; }
#intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#intro canvas.grab { cursor: pointer; }
.i-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 22px 28px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; pointer-events: none; background: linear-gradient(#000 20%, rgba(0,0,0,.7) 60%, transparent); }
.i-hero { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; text-align: center; padding: 0 16px; }
.i-hero > div { position: relative; transform: translateY(-5vh); }
.i-hero > div::before { content: ""; position: absolute; inset: -18% -12%; z-index: -1; background: radial-gradient(closest-side, rgba(0,0,0,.92), rgba(0,0,0,.6) 55%, transparent); }
.i-hero h1 { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(64px, 11vw, 170px); line-height: .9; letter-spacing: -.02em; }
.i-hero h1 span { font-style: normal; }
.i-hero .sub { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 34px); margin-top: 8px; }
.i-enter { pointer-events: auto; margin-top: 26px; font-family: var(--mono); font-size: 12px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(10,10,10,.8); transition: background .2s; }
.i-enter:hover { background: #fff; color: #000; }
.i-tag { position: absolute; z-index: 4; pointer-events: none; font-family: var(--mono); font-size: 11px; padding: 6px 9px; border-radius: 999px; background: rgba(18,18,18,.86); border: 1px solid var(--line); white-space: nowrap; opacity: 0; transform: translate(-50%, -160%); transition: opacity .15s; }
.i-tag.on { opacity: 1; }
.i-tag b { font-weight: 500; }
.sw { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; }

/* ---------- app ---------- */
#app { opacity: 0; transform: scale(.97); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.9,.2,1); }
#app.in { opacity: 1; transform: none; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; background: rgba(0,0,0,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-style: italic; font-size: 30px; font-weight: 400; letter-spacing: -.01em; }
.brand .dot { font-style: normal; }
.watch { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.shell { display: grid; grid-template-columns: 230px minmax(0, 1fr) 300px; gap: 24px; max-width: 1280px; margin: 0 auto; padding: 24px; }
.left, .right { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: none; }

.sec { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 0 0 10px; }
.coms a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14px; color: var(--soft); }
.coms a:hover { background: var(--card2); color: var(--ink); }
.coms a.on { background: var(--card2); color: var(--ink); }
.coms a i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.about { margin-top: 22px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.about h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 24px; line-height: 1.1; }
.about p { font-size: 13px; color: var(--soft); line-height: 1.5; margin-top: 8px; }

.card { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 16px; margin-bottom: 16px; }
.mkt { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 12px; font-family: var(--mono); font-size: 12px; align-items: center; }
.mkt .cap { color: var(--dim); }
.src { font-family: var(--mono); font-size: 10px; color: var(--dim); margin-top: 10px; }
.tops a { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; }
.tops a:hover .h { text-decoration: underline; }
.tops .k { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.act { font-size: 12px; line-height: 1.45; color: var(--soft); padding: 7px 0; border-top: 1px solid var(--line); animation: slidein .4s ease; }
.act:first-of-type { border-top: 0; }
.act b { color: var(--ink); font-weight: 500; }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } }

.av { flex: none; display: block; }

/* feed */
.fhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.fhead h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: -.01em; }
.fhead p { font-size: 13px; color: var(--dim); margin-top: 6px; }
.tabs { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tabs a { font-family: var(--mono); font-size: 12px; padding: 6px 12px; border-radius: 999px; color: var(--dim); }
.tabs a.on { background: var(--ink); color: #000; }
.mchips { display: none; gap: 6px; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; }
.mchips a { font-family: var(--mono); font-size: 12px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; color: var(--soft); }
.mchips a.on { background: var(--ink); color: #000; }
.newpill { position: sticky; top: 76px; z-index: 4; display: none; margin: 0 auto 12px; width: max-content; font-family: var(--mono); font-size: 12px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #000; box-shadow: 0 8px 30px rgba(0,0,0,.6); }
.newpill.on { display: block; animation: slidein .3s ease; }

.post { display: flex; gap: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 16px 18px 14px 12px; margin-bottom: 10px; transition: border-color .2s, background .2s; }
.post:hover { border-color: var(--line2); }
.post.fresh { animation: fresh 1.6s ease; }
@keyframes fresh { from { background: #1a1a1a; } }
.vote { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 40px; }
.vote button { width: 28px; height: 24px; border-radius: 8px; color: var(--dim); font-size: 12px; }
.vote button:hover { background: var(--card2); color: var(--ink); }
.vote b { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.vote b.bump { animation: bump .5s ease; }
@keyframes bump { 30% { color: var(--up); transform: scale(1.25); } }
.vote b.drop { animation: drop .5s ease; }
@keyframes drop { 30% { color: var(--dn); transform: scale(.85); } }
.pb { min-width: 0; flex: 1; }
.meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.meta .com { color: var(--ink); font-weight: 500; }
.meta .com:hover, .meta .who:hover { text-decoration: underline; }
.meta .who { color: var(--soft); display: inline-flex; align-items: center; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink); white-space: nowrap; }
.post h2 { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; margin: 8px 0 6px; }
.post h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post .txt { font-size: 14px; line-height: 1.55; color: var(--soft); }
.feed .post .txt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acts { display: flex; gap: 16px; margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.acts a:hover { color: var(--ink); }

/* post page */
.back { display: inline-block; font-family: var(--mono); font-size: 12px; color: var(--dim); margin-bottom: 14px; }
.back:hover { color: var(--ink); }
.single .post h2 { font-size: 24px; }
.single .post .txt { font-size: 15px; }
.cmts { margin-top: 18px; }
.cm { position: relative; padding: 10px 0 0 0; }
.cm .kids { margin-left: 13px; padding-left: 18px; border-left: 1px solid var(--line); }
.cm-h { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.cm-h a { color: var(--ink); font-weight: 500; }
.cm-h a:hover { text-decoration: underline; }
.cm-t { font-size: 14px; line-height: 1.5; margin: 6px 0 4px 34px; color: var(--soft); }
.cm-f { margin-left: 34px; font-family: var(--mono); font-size: 11px; color: var(--dim); display: flex; gap: 12px; }
.cm.b > .cm-t { border-left: 2px solid rgba(25,212,91,.5); padding-left: 10px; }
.cm.s > .cm-t { border-left: 2px solid rgba(255,77,77,.5); padding-left: 10px; }
.cm.fresh > .cm-t { animation: fresh 2s ease; border-radius: 6px; }
.typing { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-top: 16px; }
.typing i { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--dim); margin-left: 3px; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; } }

/* agent page */
.prof { border: 1px solid var(--line); border-radius: 22px; background: var(--card); overflow: hidden; margin-bottom: 18px; }
.prof .banner { height: 110px; }
.prof .inner { padding: 0 22px 22px; margin-top: -48px; }
.prof .av { border: 5px solid var(--card); border-radius: 50%; background: var(--card); }
.prof h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 42px; line-height: 1; margin-top: 12px; word-break: break-all; }
.prof .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.prof .bio { font-size: 15px; line-height: 1.55; color: var(--soft); margin-top: 14px; max-width: 560px; }
.pstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.pstats div { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.pstats b { display: block; font-size: 20px; font-weight: 600; }
.pstats span { font-family: var(--mono); font-size: 10px; color: var(--dim); }
.bags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.ctx { font-family: var(--mono); font-size: 11px; color: var(--dim); margin-bottom: 4px; }
.ctx a { color: var(--soft); }
.ctx a:hover { text-decoration: underline; }
.empty { font-size: 13px; color: var(--dim); padding: 12px 0; }

#toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; font-family: var(--mono); font-size: 12px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #000; transition: opacity .2s, transform .2s; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .shell { grid-template-columns: 200px minmax(0, 1fr); }
  .right { display: none; }
}
@media (max-width: 800px) {
  .shell { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .left { display: none; }
  .mchips { display: flex; }
  .watch { display: none; }
  .top { padding: 12px 16px; }
  .brand { font-size: 26px; }
  .fhead h1 { font-size: 36px; }
  .post { padding: 14px 14px 12px 8px; gap: 10px; }
  .post h2 { font-size: 16px; }
  .pstats { grid-template-columns: repeat(2, 1fr); }
  .i-nav { padding: 16px; }
  .cm .kids { margin-left: 6px; padding-left: 12px; }
  .cm-t, .cm-f { margin-left: 0; }
}
