/* Garp tokens: a hero, a row of the newest launches and a grid of picture-first token cards (the shape of
   clank.trade), drawn in Garp's own look: Inter, the site's colours, the pixel ghost, real figures.
   The top bar's rules are appended at build time from work/one-session/src/garp-bar.css. */
:root {
  --bg: #FFFFFF; --bg-2: #FAFAFA; --bg-3: #F3F4F3; --hair: #ECEDEC; --hair-2: #DFE1DF; --ink: #111412; --ink-2: #5F6663; --ink-3: #9AA09D;
  --green: #00B140; --green-2: #00CD48; --green-bg: #EEF9F1; --red: #D93B4B; --red-bg: #FBEEEF; --amber: #B27A00; --amber-bg: #FFF5DC;
  --panel: #161B1C; --lift: 0 14px 30px rgba(0,0,0,.10);
  --top-h: 64px; --cols: 6; --gap: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121615; --bg-2: #171C1A; --bg-3: #1E2422; --hair: #232A27; --hair-2: #2E3633; --ink: #F1F3F2; --ink-2: #A9B0AD; --ink-3: #6E7672;
    --green: #2ED47A; --green-2: #00E583; --green-bg: #12301F; --red: #F06A75; --red-bg: #3A1A1D; --amber: #E1B04C; --amber-bg: #3A2E14;
    --panel: #1A201F; --lift: 0 14px 30px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121615; --bg-2: #171C1A; --bg-3: #1E2422; --hair: #232A27; --hair-2: #2E3633; --ink: #F1F3F2; --ink-2: #A9B0AD; --ink-3: #6E7672;
  --green: #2ED47A; --green-2: #00E583; --green-bg: #12301F; --red: #F06A75; --red-bg: #3A1A1D; --amber: #E1B04C; --amber-bg: #3A2E14;
  --panel: #1A201F; --lift: 0 14px 30px rgba(0,0,0,.45);
  color-scheme: dark;
}
@media (max-width: 1240px) { :root { --cols: 5; } }
@media (max-width: 1020px) { :root { --cols: 4; } }
@media (max-width: 800px) { :root { --cols: 3; } }
@media (max-width: 640px) { :root { --top-h: 56px; --cols: 2; --gap: 10px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 24px 64px; }
.note { margin: 6px 0 10px; padding: 9px 14px; border-radius: 12px; background: var(--amber-bg); color: var(--amber); font-size: 13px; font-weight: 600; }

/* hero: one statement, one fact, one button, the ghost */
.hero { position: relative; overflow: hidden; margin-top: 6px; border-radius: 28px; background: var(--panel); color: #fff; padding: 64px 60px 66px; display: flex; align-items: center; min-height: 360px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.085) 1px, transparent 1.6px); background-size: 16px 16px; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }
.hero-copy { position: relative; max-width: 640px; }
.hero h1 { margin: 0; font-size: clamp(38px, 5.4vw, 72px); font-weight: 800; letter-spacing: -0.045em; line-height: .98; }
.hero h1 em { font-style: normal; color: #00F484; }
.fact { margin: 22px 0 0; font-size: 16px; color: rgba(255,255,255,.72); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fact img { width: 18px; height: 18px; border-radius: 5px; object-fit: contain; }
.fact b { color: #fff; font-weight: 600; }
.fact .ch { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.cta { margin-top: 26px; height: 48px; padding: 0 22px 0 13px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -.01em; color: #06281A; background: linear-gradient(180deg, #33F7A2 0%, #00E583 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 18px rgba(0,229,131,.26); transition: transform .12s, box-shadow .15s; }
.cta:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 24px rgba(0,229,131,.34); }
.cta .plus { width: 24px; height: 24px; border-radius: 50%; background: rgba(6,40,26,.16); display: grid; place-items: center; } .cta .plus svg { width: 12px; height: 12px; }
.ghost { position: absolute; right: 8%; top: 50%; width: 288px; height: 288px; margin-top: -144px; animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }

/* section heads */
.sec { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 36px 0 14px; }
.sec h2 { margin: 0 6px 0 0; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.arrows { margin-left: auto; display: flex; gap: 8px; }
.arrows button { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-3); display: grid; place-items: center; }
.arrows button:hover:not(:disabled) { background: var(--hair); } .arrows button:disabled { opacity: .35; cursor: default; }
.arrows svg { width: 16px; height: 16px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { height: 36px; padding: 0 14px; border-radius: 999px; background: var(--bg-3); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.filters button i { font-style: normal; font-weight: 500; color: var(--ink-3); }
.filters button:hover:not([aria-pressed="true"]) { background: var(--hair); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); } .filters button[aria-pressed="true"] i { color: inherit; opacity: .6; }
.find { margin-left: auto; height: 36px; width: 280px; max-width: 100%; border-radius: 999px; background: var(--bg-3); display: flex; align-items: center; gap: 9px; padding: 0 14px; color: var(--ink-3); }
.find svg { width: 15px; height: 15px; flex: 0 0 auto; }
.find input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--ink); outline: none; padding: 0; -webkit-appearance: none; appearance: none; }
.find input::placeholder { color: var(--ink-3); }
.find:focus-within { box-shadow: 0 0 0 2px var(--green); }
.dd { position: relative; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--bg-3); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dd::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
.dd select { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; font: inherit; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 10px; margin: -6px -2px -10px; }
.rail::-webkit-scrollbar { display: none; }
.coin { min-width: 0; background: var(--bg-3); border-radius: 20px; padding: 5px; display: flex; flex-direction: column; gap: 5px; cursor: pointer; scroll-snap-align: start; transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .16s; }
.coin:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--green-2), var(--lift); }
.pic { position: relative; aspect-ratio: 1; border-radius: 15px; overflow: hidden; background: var(--hair); display: grid; place-items: center; font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.04em; color: var(--ink-3); }
.pic .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pic .chain { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 5px rgba(0,0,0,.22); }
.pic .chain img { width: 15px; height: 15px; object-fit: contain; display: block; }
.info { flex: 1; min-width: 0; background: var(--bg); border-radius: 15px; padding: 12px 12px 12px; display: flex; flex-direction: column; }
.nm { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nm h3 { margin: 0; flex: 1; min-width: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm .x { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-3); display: grid; place-items: center; }
.nm .x svg { width: 11px; height: 11px; } .nm .x:hover { background: var(--ink); color: var(--bg); }
.tk { margin: 1px 0 0; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca { align-self: flex-start; margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1.3 "JetBrains Mono", ui-monospace, Menlo, monospace; color: var(--ink-2); }
.ca svg { width: 12px; height: 12px; } .ca:hover { color: var(--ink); } .ca.done { color: var(--green); }
.money { margin-top: 14px; min-height: 24px; display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.money b { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.money i { font-style: normal; font-size: 11px; color: var(--ink-3); }
.money b.quiet { font-weight: 500; color: var(--ink-3); }
.chg { margin-left: auto; font-size: 12px; font-weight: 700; white-space: nowrap; } .chg.up { color: var(--green); } .chg.down { color: var(--red); }
/* the token's agents, as its manage page lists them, with what each has ready */
.agents { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--hair); }
.agents h4 { margin: 0 0 4px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.agents h4 b { font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--green); }
.agents p { margin: 0; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 20px; color: var(--ink-2); }
.agents p span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agents p b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.agents p b.quiet { font-weight: 500; color: var(--ink-3); }
.earn { margin-top: auto; padding-top: 10px; }
.earn svg { display: block; width: 100%; height: 20px; }
.earn svg + p { margin-top: 5px; }
.earn .track { height: 5px; margin: 8px 0 12px; border-radius: 999px; background: var(--bg-3); }
.earn p { margin: 0; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.earn p b { color: var(--green); font-weight: 700; }

.blank { grid-column: 1 / -1; padding: 44px 22px 48px; border-radius: 20px; background: var(--bg-3); }
.blank h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.blank p { margin: 6px 0 16px; color: var(--ink-2); max-width: 46ch; }
.btn { height: 40px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; }
.btn:hover { filter: brightness(1.15); }
.more { display: flex; justify-content: center; margin-top: 22px; }
.foot { margin: 26px 4px 0; color: var(--ink-3); font-size: 12px; line-height: 1.5; }

@media (max-width: 900px) { .hero { padding: 48px 36px 50px; min-height: 300px; } .ghost { width: 216px; height: 216px; margin-top: -108px; right: 5%; } .find { margin-left: 0; flex: 1 1 200px; } }
@media (max-width: 640px) {
  .wrap { padding: 0 12px 48px; }
  .hero { border-radius: 22px; padding: 34px 22px 36px; min-height: 0; }
  .hero h1 { font-size: 38px; }
  .fact { font-size: 14px; margin-top: 16px; }
  .cta { margin-top: 20px; height: 44px; font-size: 15px; }
  .ghost { width: 144px; height: 144px; margin-top: 0; top: auto; bottom: -22px; right: -14px; opacity: .5; }
  .sec { margin: 28px 0 12px; } .sec h2 { font-size: 21px; }
  .rail { grid-auto-columns: 46%; }
  .find { flex-basis: 100%; order: 3; }
  .coin { border-radius: 18px; padding: 4px; gap: 4px; } .pic, .info { border-radius: 14px; }
  .info { padding: 10px; } .money b { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .ghost { animation: none; } .coin { transition: none; } .coin:hover { transform: none; } }

  /* garp-bar:start  The one top bar. These rules are the leaderboard's (apps/board/board.template.html), carried here
     unchanged so every page outside the leaderboard shows the same bar. Edit them in one place: work/one-session/src. */
  :where(.top, #msheet-nav), :where(.top, #msheet-nav) * { box-sizing: border-box; }
  :where(.top, #msheet-nav) a { color: inherit; text-decoration: none; }
  :where(.top, #msheet-nav) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
  .top, #msheet-nav { font: 13px/1.4 "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: normal; color: var(--ink); }
  .top { height: 64px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 0 24px; position: sticky; top: 0; background: var(--bg); z-index: 5; flex: 0 0 auto; }
  .top-l, .top-r { display: flex; align-items: center; gap: 14px; min-width: 0; } .top-r { justify-content: flex-end; gap: 10px; }
  .top .mark { width: 40px; height: 40px; color: var(--green-2); display: grid; place-items: center; flex: 0 0 auto; } .top .mark svg { width: 32px; height: 32px; display: block; }
  .top .wordmark { display: flex; align-items: center; gap: 12px; cursor: pointer; }
  .top .wordmark b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
  .top .search { margin: 0; width: 320px; height: 40px; border-radius: 999px; background: var(--bg-3); display: flex; align-items: center; padding: 0 16px; gap: 10px; color: var(--ink-3); }
  .top .search span { font-size: 16px; }
  .top .search input { flex: 1; margin: 0; border: 0; background: none; box-shadow: none; font: inherit; color: var(--ink); outline: none; min-width: 0; padding: 1px 2px; border-radius: 0; width: auto; height: auto; cursor: pointer; }
  .top .search input:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
  .top .search kbd { font: 600 11px/1 "JetBrains Mono", ui-monospace, Menlo, monospace; color: var(--ink-3); background: var(--bg); border: 1px solid var(--hair-2); border-radius: 6px; padding: 3px 6px; }
  .topnav { display: flex; gap: 2px; align-items: center; height: 52px; } .topnav button, .topnav a { height: 34px; padding: 0 12px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; } .topnav button:hover, .topnav a:hover { color: var(--ink); } .topnav a[aria-current="page"] { background: var(--bg-3); color: var(--ink); }
  .top .btn-launch { height: 40px; padding: 0 18px 0 11px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; letter-spacing: -.01em; color: #06281A; background: linear-gradient(180deg, #33F7A2 0%, #00E583 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 18px rgba(0,229,131,.26); white-space: nowrap; transition: transform .12s, box-shadow .15s; }
  .top .btn-launch:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 24px rgba(0,229,131,.34); } .top .btn-launch:active { transform: translateY(0); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 3px 10px rgba(0,229,131,.26); }
  .top .btn-launch .plus { width: 22px; height: 22px; border-radius: 50%; background: rgba(6,40,26,.16); display: grid; place-items: center; flex: 0 0 auto; } .top .btn-launch .plus svg { width: 11px; height: 11px; }
  .top .wpill { height: 40px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--bg-3); display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--ink); flex: 0 0 auto; }
  .top .wpill:hover { background: var(--hair); }
  .top .wpill .av { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: block; } .top .wpill .av.ini { display: grid; place-items: center; font-size: 10px; font-weight: 700; }
  .top .wpill.wbtn { height: 40px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap; transition: filter .15s, transform .12s; } .top .wpill.wbtn.off { padding: 0 18px 0 14px; background: var(--ink); color: var(--bg); gap: 8px; } .top .wpill.wbtn.off svg { width: 16px; height: 16px; } .top .wpill.wbtn.off:hover { filter: brightness(1.15); transform: translateY(-1px); } .top .wpill.wbtn.on { padding: 0 14px 0 6px; background: var(--bg-3); }
  .top .iconbtn { display: none; width: 38px; height: 38px; border-radius: 50%; background: var(--bg-3); color: var(--ink); place-items: center; flex: 0 0 auto; }
  .top .iconbtn svg { width: 19px; height: 19px; }
  .top .iconbtn:active { background: var(--hair); }
  #msheet-nav .sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 40; display: flex; align-items: flex-start; align-items: safe center; justify-content: center; padding: 24px 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  #msheet-nav .sheet { width: 100%; max-width: 408px; background: var(--bg); border-radius: 24px; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.2); text-align: left; margin: auto 0; flex: 0 0 auto; }
  #msheet-nav .mnav { display: flex; flex-direction: column; gap: 8px; }
  #msheet-nav .mnav button, #msheet-nav .mnav a { display: flex; align-items: center; gap: 12px; height: 54px; border-radius: 16px; background: var(--bg-3); padding: 0 18px; font-size: 16px; font-weight: 600; color: var(--ink); text-align: left; }
  #msheet-nav .mnav .go { background: var(--green-2); color: #06281A; }
  #msheet-nav .mnav i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-2); margin-left: auto; }
  @media (max-width: 1300px) { .top .search { width: 260px; } }
  @media (max-width: 1100px) { .top .search { width: 200px; } }
  @media (max-width: 860px) { .topnav { display: none; } .top { grid-template-columns: auto minmax(0, 1fr) auto; } .top .search { width: 100%; } .top .btn-launch { padding: 0 14px 0 10px; } }
  @media (max-width: 700px) { .top .search { display: none; } }
  @media (max-width: 640px) {
    .top { height: 56px; padding: 0 12px; gap: 8px; grid-template-columns: auto minmax(0, 1fr) auto; }
    .top .search, .top .btn-launch { display: none; }
    .top .iconbtn { display: grid; }
    .top-l, .top-r { gap: 8px; }
    .top .wordmark b { font-size: 17px; }
    .top .mark { width: 32px; height: 32px; } .top .mark svg { width: 26px; height: 26px; }
    .top .wpill { flex: 0 1 auto; min-width: 0; max-width: 40vw; overflow: hidden; }
    .top .wpill .wlab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
    .top .wpill.wbtn.off { padding: 0 14px; }
    #msheet-nav .sheet-bg { padding: 72px 12px 12px; }
  }
  @media print { .top { display: none; } }
  /* garp-bar:end */
