/* Retro Mac: 1-bit monochrome, window chrome, hard shadows, dotted desktop. */
:root {
  --ink: #000;
  --paper: #fff;
  --chrome: #c8c8c8;
  --desk: #e4e4e4;
  --dim: #555;
  --line: 3px;
  --shadow: 5px 5px 0 var(--ink);
  --display: "Baloo 2", "Varela Round", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
  --max: 1080px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #1a1a1a;
  color: var(--ink);
  font: 500 16px/1.55 var(--display);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.mono { font-family: var(--mono); }
u { text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- menu bar ---------- */
.menubar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 22px;
  height: 46px; padding: 0 14px;
  background: var(--chrome);
  border: var(--line) solid var(--ink);
  border-bottom-width: var(--line);
}
.logo { display: grid; place-items: center; }
.menubar nav { display: flex; gap: 22px; margin-right: auto; }
.menubar nav a { font-weight: 700; font-size: 15px; text-decoration: none; padding: 2px 6px; }
.menubar nav a:hover { background: var(--ink); color: var(--paper); }

/* ---------- frame ---------- */
.frame { border: var(--line) solid var(--ink); border-top: 0; background: var(--paper); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 18px;
  font: 700 15px var(--display); color: var(--ink); text-decoration: none; white-space: nowrap;
  background: var(--chrome); border: var(--line) solid var(--ink); border-radius: 2px;
  box-shadow: 3px 3px 0 var(--ink); cursor: pointer;
  transition: transform .06s, box-shadow .06s;
}
.btn:hover { background: var(--paper); }
.btn:active { transform: translate(3px, 3px); box-shadow: none; }
.btn:disabled { cursor: progress; background: repeating-linear-gradient(45deg, var(--chrome) 0 4px, var(--paper) 4px 8px); }
.btn-flat { background: var(--paper); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 16px 0; border-bottom: var(--line) solid var(--ink); }
.hero-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
h1 {
  margin: 0 0 16px;
  font: 800 clamp(52px, 8vw, 88px)/0.95 var(--display);
  letter-spacing: -0.02em;
}
.hero h1 { font-size: clamp(46px, 6.3vw, 78px); }
.lede { max-width: 470px; margin: 0 0 26px; font-size: 18px; }
.hero-art { width: 100%; max-width: 380px; justify-self: center; overflow: visible; }

.stats { display: flex; gap: 0; margin: 34px 0 0; width: max-content; border: var(--line) solid var(--ink); box-shadow: var(--shadow); background: var(--paper); }
.stats div { padding: 8px 18px; border-left: var(--line) solid var(--ink); }
.stats div:first-child { border-left: 0; }
.stats dt { font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.stats dd { margin: 0; font: 800 26px/1.2 var(--display); font-variant-numeric: tabular-nums; }

/* quick links straddle the hero/desk border */
.quick { max-width: var(--max); margin: 56px auto 0; position: relative; top: 25px; }
.quick h3 { margin: 0 0 8px; font: 800 20px var(--display); }
.quick-row { display: grid; grid-template-columns: repeat(4, 1fr); border: var(--line) solid var(--ink); background: var(--chrome); box-shadow: var(--shadow); }
.quick-row a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; font-weight: 700; text-decoration: none;
  border-left: var(--line) solid var(--ink);
}
.quick-row a:first-child { border-left: 0; }
.quick-row a:hover { background: var(--ink); color: var(--paper); }
.quick-row span { font-size: 18px; }

/* ---------- desk ---------- */
.desk {
  padding: 60px 16px 20px;
  background-color: var(--desk);
  background-image: radial-gradient(#9a9a9a 1px, transparent 1.2px);
  background-size: 6px 6px;
}
.section { max-width: var(--max); margin: 0 auto 64px; scroll-margin-top: 70px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
h2 { margin: 0 0 18px; font: 800 44px/1 var(--display); letter-spacing: -0.01em; }
h4 { margin: 0 0 6px; font: 800 22px/1.15 var(--display); }
.chip { padding: 4px 10px; font-size: 12px; background: var(--paper); border: var(--line) solid var(--ink); box-shadow: 3px 3px 0 var(--ink); text-decoration: none; margin-bottom: 18px; }

/* ---------- window ---------- */
.win { background: var(--paper); border: var(--line) solid var(--ink); box-shadow: var(--shadow); min-width: 0; }
.titlebar {
  position: relative; display: flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 10px;
  background: var(--chrome); border-bottom: var(--line) solid var(--ink);
  font: 700 12px var(--mono); list-style: none;
}
.titlebar::-webkit-details-marker { display: none; }
.titlebar i { width: 11px; height: 11px; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--paper); flex: none; }
.titlebar span { position: absolute; left: 50%; transform: translateX(-50%); max-width: calc(100% - 80px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-body { padding: 18px 20px 20px; }
.win-body > p:first-child { margin-top: 0; }

/* merge log */
.win-wide { max-width: 760px; }
.log { list-style: none; margin: 0; padding: 14px 20px 16px; font: 13.5px/1.5 var(--mono); }
.log li { display: grid; grid-template-columns: 76px 1fr; column-gap: 12px; padding: 6px 0; border-bottom: 2px dashed #bbb; opacity: 0; animation: type .35s forwards; }
.log li:last-child { border-bottom: 0; }
.log li:nth-child(2) { animation-delay: .5s; }
.log li:nth-child(3) { animation-delay: 1s; }
.log li:nth-child(4) { animation-delay: 1.5s; }
.log time { grid-row: span 2; color: var(--dim); }
.log b { font-weight: 700; }
.log span { color: var(--dim); overflow-wrap: anywhere; }
.log li.done b { background: var(--ink); color: var(--paper); padding: 0 6px; justify-self: start; }
@keyframes type { to { opacity: 1; } }

/* ---------- bounty cards ---------- */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.bounty .win-body { display: flex; flex-direction: column; gap: 10px; height: calc(100% - 30px); }
.bounty .banner {
  height: 84px; margin: -18px -20px 4px; border-bottom: var(--line) solid var(--ink);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background-image: radial-gradient(#000 1.1px, transparent 1.3px); background-size: 5px 5px; background-color: var(--paper);
}
.bounty .amt { background: var(--paper); border: var(--line) solid var(--ink); padding: 2px 12px; font: 800 26px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.bounty .amt small { font-size: 13px; margin-left: 4px; }
.bounty .title { font: 800 21px/1.15 var(--display); overflow-wrap: anywhere; }
.bounty .title a { text-decoration: none; }
.bounty .meta { font: 12px var(--mono); color: var(--dim); }
.bounty .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill { font: 700 11.5px var(--mono); padding: 3px 8px; border: 2.5px solid var(--ink); white-space: nowrap; text-transform: uppercase; }
.pill.open { background: var(--paper); }
.pill.paid { background: var(--ink); color: var(--paper); }
.pill.held { background: repeating-linear-gradient(45deg, var(--paper) 0 3px, #bbb 3px 6px); }
.pill.expired { background: var(--chrome); color: var(--dim); }
.empty, .loading { grid-column: 1 / -1; padding: 28px; text-align: center; background: var(--paper); border: var(--line) dashed var(--ink); font-weight: 700; }

/* ---------- forms & code ---------- */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.form { display: grid; gap: 14px; }
.form-inline { grid-template-columns: 1fr auto; align-items: end; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 4px; font: 700 13px var(--display); }
input {
  height: 42px; width: 100%; padding: 0 10px;
  font: 14px var(--mono); color: var(--ink); background: var(--paper);
  border: var(--line) solid var(--ink); border-radius: 0; outline: none;
  box-shadow: inset 3px 3px 0 #d6d6d6;
}
input:focus { box-shadow: inset 3px 3px 0 #d6d6d6, 0 0 0 3px var(--chrome); }
.hint { margin: -4px 0 0; font: 12px var(--mono); min-height: 1em; }
.status { margin: 0; font: 13px/1.5 var(--mono); min-height: 1.2em; overflow-wrap: anywhere; }
.status.ok { padding: 8px 10px; border: 2.5px solid var(--ink); background: var(--paper); }
.status.ok::before { content: "✔ "; }
.status.err { padding: 8px 10px; border: 2.5px solid var(--ink); background: repeating-linear-gradient(45deg, var(--paper) 0 4px, #e2e2e2 4px 8px); }
.status.err::before { content: "⚠ "; }

.pin { margin: 0 0 12px; padding: 6px 10px; font-size: 12px; background: var(--chrome); border: 2.5px solid var(--ink); overflow-wrap: anywhere; }
.code {
  margin: 12px 0 16px; padding: 12px 14px; max-height: 320px; overflow: auto;
  font: 12.5px/1.55 var(--mono); background: var(--paper); border: var(--line) solid var(--ink);
  box-shadow: inset 3px 3px 0 #e0e0e0;
}
.steps { margin: 0 0 14px; padding-left: 20px; }
.steps li { margin: 4px 0; }

.lookup { margin-top: 16px; }
.card { display: grid; gap: 6px; padding: 14px; border: var(--line) solid var(--ink); background: var(--chrome); }
.card .who { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.card img { width: 34px; height: 34px; border: 2.5px solid var(--ink); filter: grayscale(1) contrast(1.2); }
.kv { display: flex; justify-content: space-between; gap: 12px; font: 13px var(--mono); border-top: 2px dashed #888; padding-top: 6px; }

/* ---------- how ---------- */
.trust { margin-top: 28px; }
.trust .titlebar { cursor: pointer; border-bottom: 0; }
.trust[open] .titlebar { border-bottom: var(--line) solid var(--ink); }
.trust ul { margin: 0; padding-left: 38px; }
.trust li { margin: 6px 0; }

footer {
  max-width: var(--max); margin: 0 auto; padding: 16px 0 8px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font: 700 13px var(--mono);
}

#toast {
  position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 8px 14px; font: 700 14px var(--mono); background: var(--paper); border: var(--line) solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transition: .15s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }


/* =============================================================================================
   Landing sections
   ============================================================================================= */

/* blinking block cursor after the headline */
.cursor { display: inline-block; width: .42em; height: .78em; margin-left: .08em; vertical-align: -0.04em; background: var(--ink); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.kicker { margin: 0 0 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.body { max-width: 560px; margin: 0 0 22px; font-size: 17px; }
.after { margin-top: 24px; }

/* two-column text + window */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.split-rev { grid-template-columns: 1.05fr 1fr; }
.split .stats { margin-top: 8px; }

/* activity feed */
.feed { list-style: none; margin: 0; padding: 4px 0; }
.feed li {
  display: grid; grid-template-columns: 30px 1fr auto; column-gap: 12px; row-gap: 0; align-items: center;
  padding: 10px 16px; border-bottom: 2px dashed #bbb;
}
.feed li:last-child { border-bottom: 0; }
.feed .ico { grid-row: span 2; width: 30px; height: 30px; display: grid; place-items: center; border: 2.5px solid var(--ink); background: var(--chrome); font-weight: 800; }
.feed .what { font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .what:hover { text-decoration: underline; }
.feed time { font: 11.5px var(--mono); color: var(--dim); }
.feed .sub { grid-column: 2 / -1; font-size: 11.5px; color: var(--dim); }
.feed-empty { display: block !important; padding: 28px 16px !important; text-align: center; font-weight: 700; }

/* staggered steps */
.stairs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.stairs .step:nth-child(1) { margin-top: 96px; }
.stairs .step:nth-child(2) { margin-top: 48px; }
.stepno { display: inline-block; margin-bottom: 8px; padding: 0 8px; font: 700 13px var(--mono); background: var(--ink); color: var(--paper); }
.step p { margin: 0; }

/* merge log in a split: no max width */
.split .log { padding-top: 12px; }

/* payout rules checklist */
.rules { padding: 32px 36px 36px; }
.checks { list-style: none; margin: 8px 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; }
.checks li { position: relative; padding-left: 38px; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; display: grid; place-items: center;
  border: 2.5px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 800; font-size: 15px;
}
.checks h4 { font-size: 19px; margin-bottom: 2px; }
.checks p { margin: 0; }

/* bounty pool list */
.pool-row {
  display: grid; grid-template-columns: minmax(180px, 1.1fr) 2fr auto; gap: 20px; align-items: center;
  padding: 16px 20px; border-bottom: 2px dashed #bbb; text-decoration: none;
}
.pool-row:last-child { border-bottom: 0; }
.pool-row:hover { background: #f1f1f1; }
.pool-row .repo { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.pool-row .repo em { font-style: normal; }
.pool-row .desc { color: #222; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pool-row .right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-variant-numeric: tabular-nums; }
.pool-empty { margin: 0; padding: 32px; text-align: center; font-weight: 700; }

/* built on arc */
.big { margin: 0; font: 800 44px/1 var(--display); letter-spacing: -0.02em; }

/* get started */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; }
.two-col > div { padding: 28px 32px 32px; }
.two-col > div + div { border-left: var(--line) solid var(--ink); background: repeating-linear-gradient(135deg, var(--paper) 0 10px, #f3f3f3 10px 20px); }
.two-col h3 { margin: 0 0 10px; font: 800 30px/1.05 var(--display); }

/* faq */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; align-items: start; }
.faq summary { cursor: pointer; }
.faq summary span { font-size: 12.5px; }
.faq .win-body { margin: 0; }
.faq details:not([open]) .titlebar { border-bottom: 0; }

/* footer */
.footer-big { flex-direction: column; align-items: stretch; gap: 14px; margin: 8px auto 24px; padding: 20px 24px; background: var(--paper); border: var(--line) solid var(--ink); box-shadow: var(--shadow); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-links .mono { margin-right: auto; font-weight: 700; }
.fine { margin: 0; max-width: 760px; padding-top: 12px; border-top: 2px dashed #bbb; font: 400 12px/1.6 var(--mono); color: #333; }

/* app page header */
.apphead { padding: 36px 16px 32px; border-bottom: var(--line) solid var(--ink); }
.apphead-inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.apphead .stats { margin: 0; }
.crumb { margin: 0 0 6px; font-size: 13px; }
.h1-sm { margin: 0; font-size: clamp(34px, 5vw, 52px); }
.apphead + .desk { padding-top: 48px; }

@media (max-width: 900px) {
  .split, .split-rev, .two-col, .faq, .checks { grid-template-columns: 1fr; }
  .split-rev > .win { order: 2; }
  .stairs { grid-template-columns: 1fr; }
  .stairs .step:nth-child(n) { margin-top: 0; }
  .stairs .step:nth-child(2) { margin-left: 24px; }
  .stairs .step:nth-child(3) { margin-left: 48px; }
  .two-col > div + div { border-left: 0; border-top: var(--line) solid var(--ink); }
}
@media (max-width: 600px) {
  .pool-row { grid-template-columns: 1fr; gap: 6px; }
  .pool-row .right { flex-direction: row; align-items: center; justify-content: space-between; }
  .rules { padding: 20px 16px; }
  .two-col > div { padding: 20px 16px; }
  .stairs .step:nth-child(2) { margin-left: 12px; }
  .stairs .step:nth-child(3) { margin-left: 24px; }
  .big { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}


/* =============================================================================================
   App (/app): tabs, account overview, activity calendar, repo cards
   ============================================================================================= */

.muted { color: var(--dim); }
.tabs a { position: relative; }
.tabs a.on { background: var(--ink); color: var(--paper); }
.menu-right { display: flex; align-items: center; gap: 10px; }
.menu-link { font-weight: 700; font-size: 15px; text-decoration: none; padding: 2px 6px; }
.menu-link:hover { background: var(--ink); color: var(--paper); }

.app-desk { padding-top: 44px; min-height: calc(100vh - 46px); }
.narrow { max-width: 640px; }
.signin h1 { margin-bottom: 8px; }
.signin p { margin: 0 0 18px; }

/* account header */
.acct-head { margin-bottom: 40px; }
.acct-id { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.acct-id img { width: 76px; height: 76px; border: var(--line) solid var(--ink); box-shadow: 4px 4px 0 var(--ink); filter: grayscale(1) contrast(1.15); background: var(--paper); }
.acct-id h1 { margin: 0; }
.handle { margin: 2px 0 0; font-size: 22px; font-weight: 700; }
.acct-head .body { max-width: 680px; }
.acct-head .body a { font-weight: 700; }
.stats-4 { margin-top: 6px; width: 100%; max-width: 860px; }
.stats-4 div { flex: 1; min-width: 0; padding: 10px 18px; }
.stats-4 dd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-4 dd { font-size: 30px; }
.stats-4 dt { text-transform: none; letter-spacing: 0; font: 500 12.5px var(--display); }

/* dashed section divider:  LABEL ——— - - - - - - STATUS */
.rule {
  max-width: var(--max); margin: 0 auto 16px; display: flex; align-items: center; gap: 14px;
  font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .1em;
}
.rule::after { content: ""; order: 1; flex: 1; border-top: 2.5px dashed var(--ink); }
.rule span { order: 0; background: var(--paper); border: 2.5px solid var(--ink); padding: 2px 8px; }
.rule em { order: 2; font-style: normal; background: var(--ink); color: var(--paper); padding: 3px 8px; }

.win-h { margin: 0 0 4px; padding-right: 110px; font: 800 24px/1.15 var(--display); }
.sub { margin: 0 0 16px; color: #222; font-size: 15px; max-width: 760px; }
.win-body { position: relative; }
.ghost-num {
  position: absolute; right: 18px; top: 10px; font: 800 64px/1 var(--mono); color: transparent;
  -webkit-text-stroke: 2px var(--ink); opacity: .35; pointer-events: none;
}
.list { display: grid; gap: 10px; }
.loading-line { margin: 0; font-weight: 700; }
.empty-box { padding: 16px 18px; border: 2.5px solid var(--ink); background: repeating-linear-gradient(135deg, var(--paper) 0 10px, #f3f3f3 10px 20px); }
.empty-box b { display: block; margin-bottom: 4px; }
.empty-box p { margin: 0; }

.row-item { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 14px; border: 2.5px solid var(--ink); background: var(--paper); flex-wrap: wrap; }
.row-item > div:first-child { display: grid; gap: 2px; min-width: 0; }
.row-item a { font-weight: 700; }
.row-item .muted { font-size: 12px; }
.row-item .right { display: flex; gap: 8px; align-items: center; }

/* payout pipeline */
.pipe { border: 2.5px solid var(--ink); background: var(--paper); }
.pipe-top { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 2.5px solid var(--ink); }
.pipe-title { font-weight: 800; font-size: 17px; }
.pipe-amt { font: 800 20px var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pipe-bar { display: grid; grid-template-columns: repeat(3, 1fr); }
.pipe-bar span { padding: 8px 12px; font: 700 12px var(--mono); text-transform: uppercase; border-left: 2.5px solid var(--ink); }
.pipe-bar span:first-child { border-left: 0; }
.pipe-bar .on { background: var(--ink); color: var(--paper); }
.pipe-bar .wait { background: repeating-linear-gradient(45deg, var(--paper) 0 4px, #cfcfcf 4px 8px); }

/* activity */
.activity { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 36px; margin: 8px 0 24px; }
.bigcount { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 16px; padding: 16px 18px; border: var(--line) solid var(--ink); background: var(--chrome); box-shadow: 4px 4px 0 var(--ink); }
.bigcount b { grid-row: span 2; font: 800 56px/1 var(--display); }
.bigcount span { font: 700 11.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.segs { display: flex; gap: 0; border: 2.5px solid var(--ink); background: var(--paper); height: 18px; }
.segs i { flex: 1; border-left: 2px solid var(--ink); }
.segs i:first-child { border-left: 0; }
.segs i.on { background: var(--ink); }
.summary { margin: 14px 0; }
.note { padding: 14px 16px; border: 2.5px solid var(--ink); background: var(--paper); }
.note-h { margin: 0 0 6px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.note p:last-child { margin: 0; font-size: 14px; }

.month { margin: 0 0 6px; text-align: right; font: 800 clamp(30px, 4.4vw, 50px)/1 var(--mono); letter-spacing: .18em; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 64px; padding: 0 2px; border-bottom: 2.5px solid var(--ink); margin-bottom: 10px; }
.spark i { flex: 1; background: var(--ink); min-height: 2px; }
.cal-head, .cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-head span { text-align: center; font: 700 11px var(--mono); padding-bottom: 4px; }
.cal span { aspect-ratio: 1; border: 2.5px solid var(--ink); background: var(--paper); display: grid; place-items: center; font: 800 18px var(--display); }
.cal span.on { background: var(--ink); color: var(--paper); }
.cal span.today { outline: 3px solid var(--ink); outline-offset: 2px; }
.cal span.future { background: repeating-linear-gradient(45deg, var(--paper) 0 3px, #e3e3e3 3px 6px); border-color: #888; }
.cal span.blank { border: 0; background: none; }

.panel-list { border: var(--line) solid var(--ink); margin-top: 18px; background: var(--paper); }
.plist-head { padding: 8px 14px; border-bottom: var(--line) solid var(--ink); background: var(--chrome); font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.plist-head.alt { background: var(--ink); color: var(--paper); }
.plist-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 14px; border-bottom: 2px dashed #bbb; align-items: center; }
.plist-row:last-child { border-bottom: 0; }
.plist-row > div:first-child { display: grid; gap: 1px; min-width: 0; }
.plist-row a { font-weight: 700; }
.plist-row .muted { font-size: 12px; }
.plist-row .right { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.plist-row time, .sub-row time { font: 11.5px var(--mono); color: var(--dim); white-space: nowrap; }
.plist-empty { margin: 0; padding: 14px; font-weight: 700; }

.pool-row small { font-size: 11.5px; color: var(--dim); }

/* bounties tab: repo cards */
#repo-cards { display: grid; gap: 32px; }
.repo-head { display: grid; grid-template-columns: minmax(160px, auto) 1fr auto; gap: 20px; align-items: center; padding: 14px 18px; border-bottom: var(--line) solid var(--ink); background: #f1f1f1; }
.repo-name { font-weight: 700; font-size: 17px; text-decoration: none; }
.repo-head .desc { font-size: 14.5px; }
.repo-head .muted { font-size: 12px; white-space: nowrap; }
.repo-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; padding: 18px; }
.sub-win { border: 2.5px solid var(--ink); background: var(--paper); align-self: start; min-width: 0; }
.repo-card { min-width: 0; }
.sub-head { display: flex; justify-content: space-between; padding: 7px 12px; border-bottom: 2.5px solid var(--ink); background: var(--chrome); font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.sub-win.alt .sub-head { background: var(--ink); color: var(--paper); }
.sub-win.alt .sub-head a { color: var(--paper); }
.sub-head a { text-decoration: none; }
.sub-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 2px dashed #bbb; font-size: 14.5px; }
.sub-row:last-child { border-bottom: 0; }
.sub-row > a { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sub-right { display: flex; gap: 8px; align-items: center; white-space: nowrap; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .activity, .repo-cols { grid-template-columns: minmax(0, 1fr); }
  .act-right { max-width: 420px; width: 100%; justify-self: center; }
  .repo-head { grid-template-columns: 1fr; gap: 4px; }
  .menu-link { display: none; }
  .menubar .tabs a { display: inline-block !important; }
}
@media (max-width: 600px) {
  .hide-sm { display: none; }
  .app .menubar { gap: 8px; padding: 0 8px; }
  .menubar .tabs { gap: 2px; }
  .menubar .tabs a { display: inline-block !important; font-size: 13.5px; padding: 2px 5px; }
  .menu-right #whoami { display: none; }
  .stats-4 { display: grid; grid-template-columns: 1fr 1fr; }
  .stats-4 div { min-width: 0; border-left: 0; border-top: var(--line) solid var(--ink); }
  .stats-4 div:nth-child(-n + 2) { border-top: 0; }
  .stats-4 div:nth-child(even) { border-left: var(--line) solid var(--ink); }
  .stats-4 dd { font-size: 22px; }
  .pipe-bar { grid-template-columns: 1fr; }
  .pipe-bar span { border-left: 0; border-top: 2px solid var(--ink); }
  .ghost-num { font-size: 40px; }
  .rule { font-size: 10.5px; gap: 8px; }
  .rule em { max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .form-inline { grid-template-columns: 1fr; }
  .acct-id img { width: 56px; height: 56px; }
  .handle { font-size: 18px; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .pair { grid-template-columns: 1fr; }
  .hero-art { max-width: 280px; order: -1; }
  .board { grid-template-columns: 1fr 1fr; }
  .quick-row { grid-template-columns: 1fr 1fr; }
  .quick-row a:nth-child(3) { border-left: 0; }
  .quick-row a:nth-child(n + 3) { border-top: var(--line) solid var(--ink); }
  .menubar nav a:nth-child(n + 4) { display: none; }
}
@media (max-width: 600px) {
  .menubar { gap: 12px; }
  .menubar nav { gap: 6px; }
  .menubar nav a { font-size: 14px; padding: 2px 4px; }
  .menubar nav a:nth-child(n + 3) { display: none; }
  .hero { padding-top: 36px; }
  .board, .row { grid-template-columns: 1fr; }
  .stats { width: 100%; }
  .stats div { flex: 1; padding: 6px 10px; }
  .stats dd { font-size: 20px; }
  h2 { font-size: 36px; }
  .win-body { padding: 14px; }
  .bounty .banner { margin: -14px -14px 4px; }
  .log li { grid-template-columns: 1fr; }
  .log time { grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .log li { animation: none; opacity: 1; }
  .btn { transition: none; }
}

.win-body:has(.ghost-num) .sub { padding-right: 96px; }
@media (max-width: 600px) { .win-body:has(.ghost-num) .sub { padding-right: 0; } }

/* claims */
.claim { display: block; margin-top: 3px; font: 700 11.5px var(--mono); }
.claim code { font: inherit; background: var(--ink); color: var(--paper); padding: 0 4px; }
.claim.free { color: var(--dim); }
.sub-main { display: grid; gap: 1px; min-width: 0; }
.sub-main > a { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pool-row .repo .claim { font-weight: 700; }
.empty-box code, .sub code { font: 700 13px var(--mono); background: var(--ink); color: var(--paper); padding: 0 4px; }
.checks code, .step code, .steps code, .faq code { font: 700 .85em var(--mono); background: var(--ink); color: var(--paper); padding: 0 5px; }

/* GitHub sign-in */
.btn-gh { background: var(--ink); color: var(--paper); gap: 10px; }
.btn-gh:hover { background: #222; color: var(--paper); }
.signin-note { margin-top: 16px; }
#whoami img { width: 18px; height: 18px; border: 2px solid var(--ink); filter: grayscale(1); }

/* fund stepper */
.rule em.done { background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); }
.step-win.step-done .titlebar { background: var(--ink); color: var(--paper); }
.step-win.step-done .titlebar i { border-color: var(--paper); background: var(--ink); }
.row-issue { grid-template-columns: 1fr 160px; }
.row-3 { grid-template-columns: repeat(3, 1fr); }
.choices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 14px 0; }
.choice { padding: 16px; border: 2.5px solid var(--ink); background: var(--paper); display: grid; gap: 10px; align-content: start; justify-items: start; }
.choice:first-child { background: repeating-linear-gradient(135deg, var(--paper) 0 10px, #f3f3f3 10px 20px); }
.choice p { margin: 0; }
.choice .kicker { margin: 0; }
.peek { width: 100%; }
.peek summary { cursor: pointer; font: 700 12.5px var(--mono); text-decoration: underline; text-underline-offset: 3px; }
.peek .code { max-height: 260px; white-space: pre-wrap; word-break: break-word; }
.wf-status .status { margin: 0; }
.linkish { font: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font-weight: 700; }
.agent-note { margin-top: 12px; font-size: 14px; }
.status code { font: 700 12px var(--mono); background: var(--ink); color: var(--paper); padding: 0 4px; }
@media (max-width: 900px) { .choices { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .row-issue, .row-3 { grid-template-columns: 1fr; } }

/* =============================================================================================
   Loading states: 1-bit dithered skeletons with a stepped shimmer, a marching progress bar under
   the menu bar (like classic Mac OS copy dialogs), and a pixel-block "Reading Arc…" indicator.
   ============================================================================================= */
.skel {
  display: block; position: relative; overflow: hidden;
  background:
    radial-gradient(#6f6f6f 1px, transparent 1.3px) 0 0 / 4px 4px,
    #d9d9d9;
  border: 2px solid #8c8c8c;
}
.skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 25%, #fff 50%, transparent 75%);
  transform: translateX(-100%);
  animation: skel-sweep 1.4s steps(14) infinite;
}
@keyframes skel-sweep { to { transform: translateX(100%); } }
.skel-line { height: 12px; margin: 5px 0; }
.skel-line.sm { height: 9px; }
.skel-title { height: 20px; margin: 4px 0 8px; }
.skel-num { display: inline-block; height: 26px; width: 90px; vertical-align: middle; }
.skel-pill { display: inline-block; height: 22px; width: 110px; }
.skel-avatar { width: 76px; height: 76px; border-width: 3px; }
.skel-block { height: 84px; }

.skel-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 2.5px solid #9a9a9a; background: var(--paper); }
.skel-row > div { flex: 1; min-width: 0; }
.list .skel-row + .skel-row { margin-top: 0; }
.skel-pool { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr 120px; gap: 20px; align-items: center; padding: 16px 20px; border-bottom: 2px dashed #ccc; }
.skel-pool:last-child { border-bottom: 0; }
.skel-feed { display: grid; grid-template-columns: 30px 1fr 50px; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 2px dashed #ccc; list-style: none; }
.skel-feed .skel:first-child { width: 30px; height: 30px; }
.skel-card .win-body { display: grid; gap: 8px; }
.skel-card .titlebar span { width: 40%; }
.cal .skel { aspect-ratio: 1; border-width: 2.5px; }
.spark.skel-spark { background: radial-gradient(#9d9d9d 1px, transparent 1.2px) 0 0 / 4px 4px; }

/* marching progress bar under the menu bar */
.menubar { position: sticky; }
#loadbar {
  position: absolute; left: -3px; right: -3px; bottom: -12px; height: 9px; z-index: 25;
  border: 2px solid var(--ink); border-top: 0;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 5px, var(--paper) 5px 10px);
  background-size: 14.14px 14.14px;
  animation: march .45s linear infinite;
  opacity: 0; transition: opacity .15s; pointer-events: none;
}
#loadbar.on { opacity: 1; }
@keyframes march { to { background-position: 14.14px 0; } }

/* "Reading Arc ▮▮▯▯▯" */
.loader { display: inline-flex; gap: 3px; vertical-align: -2px; margin-right: 8px; }
.loader i { width: 9px; height: 13px; border: 2px solid var(--ink); background: var(--paper); animation: fill-block 1.2s steps(1) infinite; }
.loader i:nth-child(2) { animation-delay: .15s; }
.loader i:nth-child(3) { animation-delay: .3s; }
.loader i:nth-child(4) { animation-delay: .45s; }
.loader i:nth-child(5) { animation-delay: .6s; }
@keyframes fill-block { 0%, 60% { background: var(--ink); } 61%, 100% { background: var(--paper); } }
.loading-line { display: flex; align-items: center; font: 700 13px var(--mono); }

/* animated ellipsis in section dividers */
.ell::after { content: "…"; display: inline-block; width: 1.2em; text-align: left; animation: ell 1.2s steps(4) infinite; }
@keyframes ell { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%, 100% { content: "..."; } }

@media (prefers-reduced-motion: reduce) {
  .skel::after, #loadbar, .loader i, .ell::after { animation: none; }
}
.cal span.skel { background: radial-gradient(#6f6f6f 1px, transparent 1.3px) 0 0 / 4px 4px, #d9d9d9; border-color: #8c8c8c; }
.acct-id img:not([src]) { background: radial-gradient(#6f6f6f 1px, transparent 1.3px) 0 0 / 4px 4px, #d9d9d9; animation: pulse-dim 1.1s steps(2) infinite; }
@keyframes pulse-dim { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .acct-id img:not([src]) { animation: none; } }

/* Readability: small text never sits directly on the dotted desk. It goes on a paper card. */
.desk { background-image: radial-gradient(#adadad 1px, transparent 1.2px); }
.desk .body {
  width: fit-content; max-width: 680px;
  padding: 10px 14px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.desk .kicker { display: inline-block; padding: 2px 8px; background: var(--paper); border: 2px solid var(--ink); }
.desk .win .body, .desk .win .kicker { width: auto; max-width: none; padding: 0; background: none; border: 0; box-shadow: none; }
.desk .win .kicker { display: block; }
.desk > footer > span, .desk footer .mono { background: var(--paper); padding: 2px 6px; }
.split .body + .stats { margin-top: 20px; }
.desk .body:empty { display: none; }

/* one-click wallet link */
.link-steps { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; gap: 10px; }
.link-steps li { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border: 2.5px solid var(--ink); background: var(--paper); }
.link-steps .n { width: 30px; height: 30px; display: grid; place-items: center; border: 2.5px solid var(--ink); font: 800 16px var(--display); }
.link-steps li.done .n { background: var(--ink); color: var(--paper); font-size: 0; }
.link-steps li.done .n::after { content: "✓"; font-size: 17px; }
.link-steps li.busy .n { animation: pulse-dim 0.8s steps(2) infinite; }
.link-steps p { margin: 2px 0 0; font-size: 13.5px; }
.link-steps .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.other-ways { margin-top: 18px; padding-top: 14px; border-top: 2px dashed #bbb; }
.other-ways .steps { margin-top: 12px; }
@media (max-width: 600px) { .link-steps li { grid-template-columns: 34px 1fr; } .link-steps li .btn { grid-column: 1 / -1; } }
