:root {
  --orange: #E66826;
  --orange-hi: #F27A36;
  --ink: #0B0A09;
  --ink-2: #141210;
  --ink-3: #1D1A17;
  --ink-4: #262220;
  --line: #2A2622;
  --cream: #F1EBDD;
  --cream-2: #BDB5A6;
  --dim: #857D71;
  --mint: #3DFFA1;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --meme: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --gap: 12px;
  --r: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--cream); font-family: var(--display); font-size: 16px; line-height: 1.35; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
.mono { font-family: var(--mono); }
.k { margin: 0; font: 600 11px/1 var(--mono); letter-spacing: .1em; color: var(--dim); }

/* ---------- pills */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 999px; font: 700 14px/1 var(--display); white-space: nowrap; transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease; }
.pill:hover { transform: translateY(-1px); }
.pill:active { transform: none; }
.pill.big { height: 50px; padding: 0 24px; font-size: 16px; }
.pill.orange { background: var(--orange); color: var(--ink); }
.pill.orange:hover { background: var(--orange-hi); }
.pill.ghost { color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line); }
.pill.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--cream-2); }
.pill.ink { background: var(--ink); color: var(--cream); }
.pill.ink:hover { background: #000; }
.pill.line { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.pill.line:hover { background: var(--ink); color: var(--cream); }
.pill.line-c { color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line); }
.pill.line-c:hover { box-shadow: inset 0 0 0 1.5px var(--cream-2); }
:is(.pill, .r-btn, .pick, .ca-btn, .more, .back):focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

/* ---------- top bar */
.bar { position: sticky; top: 0; z-index: 10; height: 60px; display: flex; align-items: center; gap: 22px; padding: 0 24px; background: rgba(11,10,9,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 800 18px/1 var(--display); letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.px { display: flex; align-items: center; gap: 10px; padding-left: 22px; border-left: 1px solid var(--line); font: 600 14px/1 var(--mono); }
.chip { font-style: normal; font: 600 12px/1 var(--mono); padding: 5px 8px; border-radius: 6px; background: var(--ink-3); }
.chip.up { color: var(--mint); background: rgba(61,255,161,.1); }
.chip.dn { color: #FF7A6B; background: rgba(255,122,107,.1); }
.links { display: flex; gap: 22px; margin-left: 8px; font: 600 14px/1 var(--display); color: var(--cream-2); }
.links a:hover { color: var(--cream); }
.bar-cta { margin-left: auto; display: flex; gap: 8px; }

/* ---------- bento */
.bento {
  max-width: 1440px; margin: 0 auto; padding: var(--gap) 16px;
  height: clamp(720px, calc(100svh - 60px), 900px);
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 1fr 1fr .64fr .64fr;
  grid-template-areas:
    "hero hero war me"
    "hero hero war me"
    "pay stats feed feed"
    "ca strip strip strip";
}
.tile { position: relative; min-width: 0; min-height: 0; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; overflow: hidden; }
.hero { grid-area: hero; } .war { grid-area: war; } .me { grid-area: me; } .pay { grid-area: pay; }
.stats { grid-area: stats; } .feed { grid-area: feed; } .ca { grid-area: ca; } .strip { grid-area: strip; }

/* hero */
.hero { background: var(--orange); border-color: var(--orange); color: var(--ink); padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-art { position: absolute; right: -17%; bottom: -5%; height: 113%; width: auto; aspect-ratio: 1; object-fit: cover; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; max-width: 54%; }
.stack { display: flex; margin-bottom: 22px; }
.stack img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 3px var(--orange); background: var(--ink); }
.stack img + img { margin-left: -10px; }
.hero h1 { margin: 0; font: 800 clamp(46px, 4.4vw, 66px)/.92 var(--display); letter-spacing: -.035em; white-space: nowrap; }
.lede { margin: 18px 0 0; font: 600 17px/1.3 var(--display); max-width: 27ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; width: max-content; max-width: calc(100vw - 64px); }

/* tile heads */
.t-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.t-head h2 { margin: 0; font: 800 22px/1 var(--display); letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; min-width: 0; }
.t-meta { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--dim); letter-spacing: .04em; white-space: nowrap; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.t-foot { position: absolute; left: 20px; right: 20px; bottom: 16px; margin: 0; font-size: 11px; color: var(--dim); letter-spacing: .03em; }
.back { width: 28px; height: 28px; border-radius: 8px; background: var(--ink-3); display: inline-grid; place-items: center; font: 600 15px/1 var(--mono); color: var(--cream-2); flex: none; }
.back:hover { color: var(--cream); background: var(--ink-4); }

/* crew war */
.war { display: flex; flex-direction: column; padding-bottom: 40px; }
.war-body { flex: 1; min-height: 0; overflow: auto; scrollbar-width: none; }
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; height: 100%; }
.r { flex: 1; min-height: 56px; border-radius: 14px; }
.r.skel { background: linear-gradient(90deg, var(--ink-3), var(--ink-4), var(--ink-3)); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.r-btn { width: 100%; height: 100%; display: grid; grid-template-columns: 18px 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px; background: var(--ink-3); text-align: left; transition: background .15s; border: 1px solid transparent; }
.r-btn:hover { background: var(--ink-4); }
.r.lead .r-btn { border-color: color-mix(in srgb, var(--crew) 55%, transparent); background: color-mix(in srgb, var(--crew) 8%, var(--ink-3)); }
.rk { font: 400 22px/1 var(--meme); color: var(--dim); text-align: center; }
.r.lead .rk { color: var(--crew); }
.ic { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--crew); background: var(--ink); }
.mid { min-width: 0; display: block; }
.nm { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.nm b { font: 800 17px/1 var(--display); letter-spacing: -.01em; }
.nm small { font: 500 11px/1 var(--mono); color: var(--dim); overflow: hidden; text-overflow: ellipsis; }
.lead-tag { font: 600 9px/1 var(--mono); letter-spacing: .1em; color: var(--ink); background: var(--crew); padding: 3px 5px; border-radius: 4px; align-self: center; }
.bar-t { display: block; margin-top: 8px; height: 5px; border-radius: 9px; background: var(--ink); overflow: hidden; }
.bar-t i { display: block; height: 100%; border-radius: 9px; background: var(--crew); transform-origin: left; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.amt { display: block; text-align: right; }
.amt b { display: block; font: 800 18px/1 var(--display); font-variant-numeric: tabular-nums; }
.amt small { display: block; margin-top: 4px; font: 500 10px/1 var(--mono); color: var(--dim); }
.roster { list-style: none; margin: 0; padding: 0; font: 500 12.5px/1 var(--mono); }
.roster li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--line); }
.roster li:first-child { border-top: 0; }
.roster .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cream-2); }
.roster .j { color: var(--mint); }
.roster .empty { color: var(--dim); }
.crew-sum { display: flex; align-items: center; gap: 12px; padding: 4px 2px 14px; }
.crew-sum img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 2px var(--crew); }
.crew-sum b { display: block; font: 800 24px/1 var(--display); }
.crew-sum small { display: block; margin-top: 5px; font: 500 11px/1 var(--mono); color: var(--dim); }

/* your crew */
.me { display: flex; flex-direction: column; }
.me .k { color: var(--orange); }
.me h3 { margin: 14px 0 6px; font: 800 26px/1.05 var(--display); letter-spacing: -.025em; }
.me .free { margin: 0; font: 500 12px/1 var(--mono); color: var(--dim); }
.me-icons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: auto 0; }
.me-icons span { display: flex; flex-direction: column; align-items: center; gap: 7px; font: 500 10px/1 var(--mono); color: var(--cream-2); }
.me-icons img { width: 100%; max-width: 56px; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 2px var(--crew); }
.me .pill.wide { width: 100%; margin-top: 18px; }
.acct { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; font: 500 12px/1 var(--mono); color: var(--cream-2); }
.acct span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct button { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; font-size: 11px; }
.acct button:hover { color: var(--cream); }
.cur { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; }
.cur img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 2px var(--crew); }
.cur b { display: block; font: 800 24px/1 var(--display); letter-spacing: -.02em; }
.cur small { display: block; margin-top: 5px; font: 500 11px/1 var(--mono); color: var(--dim); }
.cur small.j { color: var(--mint); }
.bals { list-style: none; margin: 10px 0 0; padding: 0; font: 500 12px/1 var(--mono); }
.bals li { display: grid; grid-template-columns: 18px 1fr auto 58px; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.bals img { width: 18px; height: 18px; border-radius: 50%; }
.bals .a { color: var(--cream); text-align: right; }
.bals .u { color: var(--dim); text-align: right; }
.bals li.zero { opacity: .4; }
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; padding-top: 12px; }
.pick { height: 38px; border-radius: 10px; background: var(--ink-3); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 7px; font: 700 13px/1 var(--display); transition: border-color .15s, background .15s; }
.pick img { width: 18px; height: 18px; border-radius: 50%; }
.pick:hover { border-color: var(--crew); }
.pick.on { border-color: var(--crew); background: color-mix(in srgb, var(--crew) 14%, var(--ink-3)); cursor: default; }
.pick.busy { opacity: .6; pointer-events: none; }
.me .note { margin: 8px 0 0; font: 500 11px/1.3 var(--mono); color: var(--dim); }
.me .empty-note { margin-top: auto; font: 500 12px/1.4 var(--mono); color: var(--cream-2); }

/* payout */
.pay { display: flex; flex-direction: column; justify-content: space-between; }
.count { font: 800 clamp(40px, 3.8vw, 56px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sub { margin: 0; font-size: 11px; color: var(--dim); }

/* stats */
.stats { display: grid; grid-template-rows: repeat(3, 1fr); gap: 0; padding: 6px 20px; }
.st { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.st:first-child { border-top: 0; }
.st b { font: 800 22px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* live trades: newest first, down the left column then the right */
.feed { display: flex; flex-direction: column; }
.feed-list { list-style: none; margin: 10px 0 0; padding: 0; flex: 1; min-height: 0; display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 28px; }
.feed-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto 30px; align-items: center; gap: 10px; min-height: 0; border-top: 1px solid var(--line); font: 500 12px/1 var(--mono); }
.feed-list li:nth-child(3n+1) { border-top: 0; }
.feed-list img, .feed-list .nc { width: 22px; height: 22px; border-radius: 50%; }
.feed-list img { box-shadow: 0 0 0 1.5px var(--crew); }
.feed-list .nc { display: block; background: var(--ink-4); }
.feed-list .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cream-2); }
.feed-list .side { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.feed-list .buy { color: var(--mint); } .feed-list .sell { color: #FF7A6B; }
.feed-list .u { font: 800 15px/1 var(--display); color: var(--cream); font-variant-numeric: tabular-nums; }
.feed-list .ago { color: var(--dim); text-align: right; }
.feed-list .empty { display: flex; border: 0; color: var(--dim); }

/* contract */
.ca { display: flex; flex-direction: column; justify-content: space-between; }
.ca-btn { display: flex; align-items: center; gap: 10px; width: 100%; height: 42px; padding: 0 5px 0 12px; border-radius: 11px; background: var(--ink-3); border: 1px solid var(--line); text-align: left; }
.ca-v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--cream); }
.ca-b { height: 30px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 8px; background: var(--ink-4); font: 600 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; transition: background .15s, color .15s; }
.ca-btn:hover .ca-b { background: var(--orange); color: var(--ink); }
.ca-links { display: flex; gap: 16px; font-size: 12px; color: var(--cream-2); }
.ca-links a:hover { color: var(--orange); }

/* meme strip */
.strip { padding: 12px; display: flex; gap: 10px; }
.strip-row { flex: 1; min-width: 0; display: flex; gap: 10px; overflow: hidden; }
.strip-row .meme { flex: 1 1 0; min-width: 110px; height: 100%; aspect-ratio: auto; border-radius: 12px; }
.strip-row .meme figcaption span { font-size: 13px; -webkit-text-stroke: 1px #000; }
.more { flex: none; width: 108px; border-radius: 12px; background: var(--ink-3); display: flex; flex-direction: column; justify-content: space-between; padding: 14px; font: 700 14px/1.1 var(--display); transition: background .15s; }
.more:hover { background: var(--ink-4); }
.more .arr { font: 400 26px/1 var(--meme); color: var(--orange); }

/* memes */
.meme { position: relative; margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 1; background: var(--ink-3); }
.meme img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.meme::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.meme:hover img { transform: scale(1.04); }
.meme figcaption { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 8px 6px; pointer-events: none; }
.meme figcaption span { font: 400 clamp(20px, 2vw, 30px)/1 var(--meme); color: #fff; text-align: center; -webkit-text-stroke: 1.5px #000; paint-order: stroke fill; text-shadow: 0 2px 0 #000; }
.memes { max-width: 1440px; margin: 0 auto; padding: 72px 16px 24px; }
.memes-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.memes-head h2 { margin: 0; font: 800 clamp(44px, 5vw, 72px)/.9 var(--display); letter-spacing: -.04em; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.grid .meme figcaption { padding: 14px 10px; }
.brought { padding-bottom: 0; }
.panels .meme figcaption { padding: 16px 12px; }
.panels .meme figcaption span { font-size: clamp(24px, 2.6vw, 40px); }

/* footer */
.foot { max-width: 1440px; margin: 0 auto; padding: 36px 16px 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); }
.foot-links { display: flex; gap: 22px; font-size: 13px; color: var(--cream-2); }
.foot-links a:hover, .foot-links button:hover { color: var(--orange); }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 16px); opacity: 0; background: var(--cream); color: var(--ink); padding: 11px 16px; border-radius: 12px; font: 600 14px/1.3 var(--display); transition: opacity .2s, transform .2s; pointer-events: none; z-index: 30; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- smaller desktops */
@media (max-width: 1180px) {
  .links { display: none; }
  .bento { height: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none;
    grid-template-areas: "hero hero" "war me" "pay stats" "feed feed" "ca ca" "strip strip"; }
  .hero { min-height: 480px; }
  .war, .me { min-height: 470px; }
  .pay, .stats { min-height: 160px; }
  .strip { height: 170px; }
}
/* ---------- phones */
@media (max-width: 720px) {
  .bar { gap: 12px; padding: 0 14px; height: 56px; }
  .brand span { display: none; }
  .px { padding-left: 12px; font-size: 13px; }
  .bar-cta .pill { height: 36px; padding: 0 14px; }
  .bento { padding: 10px; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "hero hero" "war war" "me me" "pay stats" "feed feed" "ca ca" "strip strip"; }
  .tile { padding: 16px; border-radius: 18px; }
  .hero { min-height: 0; padding: 0; display: block; }
  .hero-art { position: relative; right: auto; bottom: auto; width: 100%; height: auto; -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent); mask-image: linear-gradient(to bottom, #000 86%, transparent); }
  .hero-copy { max-width: none; padding: 0 18px 22px; margin-top: -6px; }
  .stack { display: none; }
  .hero h1 { font-size: clamp(46px, 13.5vw, 64px); white-space: normal; }
  .hero-cta { width: auto; max-width: none; }
  .lede { font-size: 16px; }
  .hero-cta .pill { flex: 1 1 auto; }
  .war, .me { min-height: 0; }
  .war { padding-bottom: 16px; }
  .rows { height: auto; }
  .r { min-height: 58px; }
  .t-foot { position: static; margin-top: 12px; }
  .me-icons { margin: 18px 0 0; }
  .picks { margin-top: 12px; }
  .pay, .stats { min-height: 150px; }
  .stats { padding: 4px 14px; }
  .st b { font-size: 18px; }
  .count { font-size: 40px; }
  .feed-list { grid-template-rows: none; grid-auto-flow: row; grid-auto-rows: 40px; }
  .feed-list li:nth-child(3n+1) { border-top: 1px solid var(--line); }
  .feed-list li:first-child { border-top: 0; }
  .ca { gap: 12px; }
  .strip { height: 150px; }
  .strip-row { overflow-x: auto; scrollbar-width: none; }
  .strip-row .meme { flex: none; width: 126px; }
  .more { width: 86px; }
  .memes { padding: 52px 10px 16px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grid .meme figcaption span { font-size: 18px; }
  .foot { flex-direction: column; padding: 28px 16px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .bar-t i, .meme img, .pill { transition: none; }
  .r.skel { animation: none; }
}
