/* CAP — white, black type, the colourful propeller cap is the only loud thing on the page.
   One quiet accent: green for "earning" and the rows of people wearing the cap. */
:root {
  --bg: #ffffff;
  --ink: #111111;
  --ink-2: #3b3b3b;
  --muted: #747474;
  --faint: #a6a6a6;
  --line: #ebebeb;
  --line-2: #d9d9d9;
  --panel: #f6f6f5;
  --ok: #1fa851;
  --ok-ink: #0d5428;
  --ok-soft: #eef9f1;
  --display: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --max: 1240px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img { display: block; }
svg { width: 1em; height: 1em; }
.mono { font-family: var(--mono); font-feature-settings: 'tnum'; }
.muted { color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font: 700 20px/1 var(--display); letter-spacing: -.02em; }
.brand svg.logo { width: 38px; height: 31px; }
.logo .prop { transform-box: view-box; transform-origin: 500px 177px; animation: spin 2.6s linear infinite; }
.brand:hover .logo .prop { animation-duration: .5s; }
@keyframes spin { 0% { transform: scaleX(1); } 25% { transform: scaleX(.08); } 50% { transform: scaleX(-1); } 75% { transform: scaleX(.08); } 100% { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .logo .prop { animation: none; } }
.nav { display: flex; gap: 2px; }
.nav a { padding: 7px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: 14.5px; }
.nav a:hover { background: var(--panel); color: var(--ink); }
.nav a.on { color: var(--ink); background: var(--panel); }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #2a2a2a; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.big { height: 50px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.btn.full { width: 100%; }
.btn[disabled] { opacity: .4; cursor: default; }
.btn svg { width: 16px; height: 16px; }
.icon-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); background: #fff; border-radius: 10px; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }

/* status line under the bar: the coin, live */
.line { border-bottom: 1px solid var(--line); background: var(--panel); }
.line-in { display: flex; align-items: stretch; min-height: 44px; overflow-x: auto; scrollbar-width: none; }
.line-in::-webkit-scrollbar { display: none; }
.li { display: flex; align-items: center; gap: 8px; padding: 0 16px; border-right: 1px solid var(--line); white-space: nowrap; font-size: 13px; color: var(--muted); }
.li:first-child { padding-left: 0; }
.li b { color: var(--ink); font: 600 13.5px/1 var(--mono); font-feature-settings: 'tnum'; }
.li .coin-img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.li.ca { cursor: pointer; }
.li.ca:hover b { text-decoration: underline; }
.li.next { margin-left: auto; border-right: 0; padding-right: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); }
.pill.prev { border-color: var(--ink); color: var(--ink); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(31, 168, 81, .18); }
.dot.off { background: var(--faint); box-shadow: none; }

/* ---------- type ---------- */
.display { font-family: var(--display); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin: 0; }
h1.display { font-size: clamp(46px, 6.6vw, 88px); }
h2.display { font-size: clamp(32px, 3.8vw, 48px); letter-spacing: -.035em; }
h3 { margin: 0; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.eyebrow { font: 500 12.5px/1 var(--mono); letter-spacing: .02em; color: var(--muted); }
.lead { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 560px; }
.page-head { padding: 40px 0 24px; display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.page-head .lead { margin: 12px 0 0; font-size: 16px; }
.page-head .side { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; padding: 56px 0 44px; align-items: center; }
.hero .lead { margin: 22px 0 28px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--muted); max-width: 520px; }
.hero-art { display: grid; gap: 18px; }
.art { aspect-ratio: 1.3; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 38%, #ffffff 0%, #f7f7f5 62%, #efefec 100%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.art svg, .art img { width: 74%; height: auto; margin-top: -2%; }
.art .prop { transform-box: view-box; transform-origin: 500px 177px; animation: spin 1.4s linear infinite; }
@media (prefers-reduced-motion: reduce) { .art .prop { animation: none; } }
.stack { display: flex; align-items: center; gap: 16px; }
.avs { display: flex; align-items: center; }
.avs > a, .avs > .more { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; margin-left: -12px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; flex: none; background: var(--panel); }
.avs > :first-child { margin-left: 0; }
.avs img { width: 100%; height: 100%; object-fit: cover; }
.avs .more { display: flex; align-items: center; justify-content: center; font: 600 12px/1 var(--mono); color: var(--ink-2); }
.stack-t { font-size: 14px; color: var(--muted); line-height: 1.4; }
.stack-t b { color: var(--ink); font-weight: 600; }
.stack-t a { color: var(--ink); border-bottom: 1px solid var(--line-2); }

.rules { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 8px 0 56px; }
.rule { padding: 22px 22px 20px; border-right: 1px solid var(--line); position: relative; }
.rule:last-child { border-right: 0; }
.rule .n { font: 500 12.5px/1 var(--mono); color: var(--faint); position: absolute; right: 20px; top: 22px; }
.rule h3 { font-size: 18px; margin: 4px 0 6px; }
.rule p { margin: 0 0 14px; color: var(--ink-2); font-size: 14.5px; max-width: 330px; }
.rule .cnt { font: 500 13px/1 var(--mono); color: var(--muted); }
.rule .cnt b { color: var(--ink); font-size: 15px; }
.rule .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--panel); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.rule .ico svg { width: 18px; height: 18px; }
.rule .ico img { width: 30px; height: 30px; }

.round { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 56px; }
.round > div { padding: 20px 22px; border-right: 1px solid var(--line); }
.round > div:last-child { border-right: 0; }
.round .k { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.round .v { font: 600 24px/1.1 var(--mono); font-feature-settings: 'tnum'; }
.round .v.big { font: 700 44px/1 var(--display); letter-spacing: -.03em; }
.round .s { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.round .first { background: var(--ink); color: #fff; }
.round .first .k { color: #b4b4b4; }
.bar-fill { height: 4px; border-radius: 2px; background: #333; margin-top: 14px; overflow: hidden; }
.bar-fill i { display: block; height: 100%; background: #fff; transition: width 1s linear; }

.mkt { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; border-top: 1px solid var(--line); padding: 48px 0 56px; }
.mkt p { color: var(--ink-2); font-size: 16px; margin: 14px 0 0; max-width: 520px; }
.apps { display: grid; gap: 10px; align-content: start; }
.app { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.app .lg { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; background: var(--panel); border: 1px solid var(--line); }
.app h3 { font-size: 15.5px; }
.app p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.tag { font: 500 11.5px/1 var(--mono); padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.tag.on { background: var(--ok-soft); border-color: #bfe8cc; color: var(--ok-ink); }

.feed { border-top: 1px solid var(--line); padding: 40px 0 64px; }
.feed-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.feed-head a { font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--ink); }
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mini { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.mini img { width: 42px; height: 42px; border-radius: 50%; flex: none; }
.mini .t1 { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .t2 { font-size: 12px; color: var(--muted); }

/* ---------- lists ---------- */
.tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.tabs { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); }
.tabs button { border: 0; background: none; padding: 7px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.tabs button .c { font: 500 12px/1 var(--mono); color: var(--muted); margin-left: 5px; }
.search { margin-left: auto; height: 38px; width: 260px; max-width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; background: #fff; }
.search:focus { outline: none; border-color: var(--ink); }

.army { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 14px; }
.card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.card:hover { border-color: var(--line-2); }
.card .pic { position: relative; aspect-ratio: 1; background: var(--panel); }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card .rk { position: absolute; top: 8px; left: 8px; font: 600 12px/1 var(--mono); background: #fff; border-radius: 6px; padding: 5px 7px; }
.card .chip { position: absolute; top: 8px; right: 8px; }
.card .body { padding: 12px; display: grid; gap: 8px; }
.card .who { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.card .who b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.card .who span { font-size: 12px; color: var(--muted); white-space: nowrap; flex: none; }
.card dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.card dt { font-size: 11px; color: var(--muted); }
.card dd { margin: 2px 0 0; font: 600 12.5px/1.2 var(--mono); font-feature-settings: 'tnum'; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .need { font-size: 12px; color: var(--muted); }

.st { display: inline-flex; align-items: center; gap: 5px; font: 600 11.5px/1 var(--sans); padding: 5px 8px; border-radius: 6px; background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.st.earning { background: var(--ok); border-color: var(--ok); color: #fff; }
.st.sold { color: var(--faint); }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table td.num, .table th.num { text-align: right; font-family: var(--mono); font-feature-settings: 'tnum'; }
.table tr.wear td { background: var(--ok-soft); }
.table tr.wear td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
.table .rk { font: 500 13px/1 var(--mono); color: var(--muted); width: 1%; }
.table .person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.table .person img.av { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.table .person b { font-weight: 600; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.cbadge { display: inline-flex; align-items: center; gap: 4px; font: 600 11px/1 var(--sans); color: var(--ok-ink); background: #fff; border: 1px solid #bfe8cc; border-radius: 6px; padding: 3px 6px 3px 4px; }
.cbadge img { width: 18px; height: 15px; object-fit: contain; }
.tbl-wrap { border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
.tbl-wrap .table tr:last-child td { border-bottom: 0; }
.neg { color: var(--muted); }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0 0; flex-wrap: wrap; }
.pg-info { font-size: 13px; color: var(--muted); }
.pg-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.pg { min-width: 36px; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; cursor: pointer; font: 500 13px/1 var(--mono); }
.pg.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pg[disabled] { opacity: .4; cursor: default; }
.pg-gap { padding: 0 4px; align-self: center; color: var(--muted); }
.empty-box { border: 1px dashed var(--line-2); border-radius: 16px; padding: 40px 24px; text-align: center; color: var(--muted); }
.empty-box b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }

/* ---------- cap maker (editor) ---------- */
.ed { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; padding: 0 0 56px; align-items: start; }
.ed-main { min-width: 0; }
.ed-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 14px 14px 0 0; border-bottom: 0; background: #fff; }
.tb { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border: 1px solid transparent; border-radius: 9px; background: none; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.tb:hover:not([disabled]) { background: var(--panel); color: var(--ink); }
.tb.on { background: var(--panel); color: var(--ink); border-color: var(--line-2); }
.tb[disabled] { opacity: .35; cursor: default; }
.tb svg { width: 17px; height: 17px; }
.tb.icon { padding: 0 9px; }
.tb.danger { margin-left: auto; color: #a12a1a; }
.tb.danger:hover:not([disabled]) { background: #fbefec; color: #a12a1a; }
.tb-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.stage { position: relative; aspect-ratio: 1; overflow: hidden; background: repeating-conic-gradient(#f3f3f2 0 25%, #fff 0 50%) 0 0 / 28px 28px; border: 1px solid var(--line); border-radius: 0 0 14px 14px; touch-action: none; user-select: none; outline: none; }
.stage canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.stage.panning canvas { cursor: grabbing; }
.stage .ring { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stage .ring.off { display: none; }
.sel { position: absolute; border: 1.5px solid rgba(17, 17, 17, .85); border-radius: 4px; cursor: move; box-shadow: 0 0 0 1px rgba(255, 255, 255, .8); }
.sel .h { position: absolute; width: 14px; height: 14px; background: #fff; border: 1.5px solid var(--ink); border-radius: 50%; }
.sel .h.nw { left: -8px; top: -8px; cursor: nwse-resize; }
.sel .h.ne { right: -8px; top: -8px; cursor: nesw-resize; }
.sel .h.sw { left: -8px; bottom: -8px; cursor: nesw-resize; }
.sel .h.se { right: -8px; bottom: -8px; cursor: nwse-resize; }
.sel .rot { position: absolute; left: 50%; top: -34px; width: 16px; height: 16px; margin-left: -8px; background: var(--ink); border: 2px solid #fff; border-radius: 50%; cursor: grab; box-shadow: 0 0 0 1px var(--ink); }
.sel .rot::after { content: ''; position: absolute; left: 50%; top: 14px; width: 1.5px; height: 18px; margin-left: -.75px; background: var(--ink); }
.busy { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; padding: 8px 12px; border-radius: 9px; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.busy::before { content: ''; width: 12px; height: 12px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.pick { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .97); padding: 24px; }
.stage.over .pick { background: var(--ok-soft); }
.pick-in { width: 100%; max-width: 380px; display: grid; gap: 12px; text-align: center; }
.pick-in img { width: 150px; margin: 0 auto 4px; }
.pick-in b { font-size: 18px; letter-spacing: -.01em; }
.pick-in .sub { color: var(--muted); font-size: 14px; margin-top: -6px; }
.pick-in .or { font-size: 12.5px; color: var(--faint); }
.linkbtn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; text-decoration: underline; }
.ed-sliders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 20px; margin-top: 14px; }
.ctrl label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.ctrl label b { font: 500 12.5px/1 var(--mono); color: var(--ink); }
.ctrl input[type=range] { width: 100%; accent-color: var(--ink); }
.ed-keys { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.9; }
.ed-keys kbd { font: 500 11.5px/1 var(--mono); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 2px 5px; color: var(--ink-2); background: #fff; }
.ed-side { display: grid; gap: 14px; position: sticky; top: 76px; }
.panel { border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.panel h3 { margin-bottom: 12px; }
.pv { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin-bottom: 14px; }
.pv canvas { border-radius: 50%; background: var(--panel); display: block; }
.pv .l { width: 100%; aspect-ratio: 1; }
.pv-s { display: grid; gap: 12px; justify-items: center; font-size: 11.5px; color: var(--muted); text-align: center; }
.pv-s canvas { margin: 0 auto 4px; }
.panel .acts { display: grid; gap: 8px; }
.err { color: #a12a1a; font-size: 13px; margin-top: 8px; }
.err:empty { display: none; }
.mine { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mine .m { position: relative; }
.mine .m img { width: 100%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); }
.mine .m .x { position: absolute; top: -4px; right: -4px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.mine .m .x svg { width: 12px; height: 12px; }
.mine .m .x:hover { border-color: #a12a1a; color: #a12a1a; }
.mine .m a { display: block; text-align: center; font-size: 12px; margin-top: 6px; color: var(--ink-2); text-decoration: underline; }
.mine-empty { font-size: 13.5px; color: var(--muted); margin: 0; }
.field { display: flex; gap: 8px; }
.field input { flex: 1; min-width: 0; height: 42px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; background: #fff; }
.field input:focus { outline: none; border-color: var(--ink); }
ol.how-set { margin: 0 0 12px; padding-left: 20px; color: var(--ink-2); font-size: 14px; }
ol.how-set li { margin: 4px 0; }

/* ---------- wallet ---------- */
.check { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.ck { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.ck .h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 600; }
.ck p { margin: 0; font-size: 13.5px; color: var(--muted); }
.ck.ok { border-color: #bfe8cc; background: var(--ok-soft); }
.yes { font: 600 11.5px/1 var(--mono); background: var(--ok); color: #fff; border-radius: 5px; padding: 4px 6px; }
.no { font: 600 11.5px/1 var(--mono); background: var(--panel); color: var(--muted); border-radius: 5px; padding: 4px 6px; border: 1px solid var(--line-2); }
.kv { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.kv > div { padding: 14px 16px; border-right: 1px solid var(--line); }
.kv > div:last-child { border-right: 0; }
.kv .k { font-size: 12px; color: var(--muted); }
.kv .v { font: 600 18px/1.3 var(--mono); font-feature-settings: 'tnum'; }
.me-head { display: flex; gap: 16px; align-items: center; margin-top: 24px; }
.me-head > img { width: 72px; height: 72px; border-radius: 50%; }

/* ---------- how ---------- */
.doc { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 48px; padding: 8px 0 72px; }
.doc nav { position: sticky; top: 84px; align-self: start; display: grid; gap: 4px; font-size: 14px; }
.doc nav a { color: var(--muted); padding: 4px 0; }
.doc nav a:hover { color: var(--ink); }
.doc section { padding: 0 0 36px; }
.doc h2 { font: 700 28px/1.1 var(--display); letter-spacing: -.03em; margin: 0 0 14px; }
.doc p, .doc li { color: var(--ink-2); font-size: 15.5px; }
.flow { list-style: none; counter-reset: step; margin: 18px 0; padding: 0; display: grid; gap: 0; }
.flow li { counter-increment: step; position: relative; padding: 0 0 18px 48px; margin: 0; color: var(--ink-2); font-size: 15.5px; }
.flow li b { color: var(--ink); }
.flow li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; display: flex; align-items: center; justify-content: center; font: 600 13px/1 var(--mono); color: var(--ink); }
.flow li::after { content: ''; position: absolute; left: 15px; top: 30px; bottom: 0; width: 1px; background: var(--line-2); }
.flow li:last-child { padding-bottom: 0; }
.flow li:last-child::after { display: none; }
.flow li:last-child::before { background: var(--ink); color: #fff; border-color: var(--ink); }
.doc .formula { font: 500 14px/1.6 var(--mono); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14.5px; margin: 8px 0; }
.doc td { border-bottom: 1px solid var(--line); padding: 9px 0; }
.doc td:last-child { text-align: right; font-family: var(--mono); }

/* ---------- payouts ---------- */
.rounds .r-row { cursor: pointer; }
.rounds .r-row:hover td { background: var(--panel); }
.rounds tr.open td { background: var(--panel); }
.payees { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; padding: 8px 4px; }
.payees div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.payees a { color: var(--ink-2); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 22px; }
.stat-row > div { padding: 16px 18px; border-right: 1px solid var(--line); }
.stat-row > div:last-child { border-right: 0; }
.stat-row .k { font-size: 12px; color: var(--muted); }
.stat-row .v { font: 600 22px/1.3 var(--mono); font-feature-settings: 'tnum'; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 26px 0 34px; font-size: 13.5px; color: var(--muted); }
.foot-in { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot a { color: var(--ink-2); }
.foot .push { margin-left: auto; display: flex; gap: 18px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 50; }
.fresh-in { animation: fresh 1.2s ease-out; }
@keyframes fresh { from { background: var(--panel); } to { background: transparent; } }
.up { animation: upmark 1.4s ease-out; }
@keyframes upmark { from { background: #efefed; } to { background: transparent; } }

/* ---------- small screens ---------- */
@media (max-width: 1020px) {
  .hero, .mkt, .ed { grid-template-columns: 1fr; gap: 32px; }
  .ed-side { position: static; }
  .round { grid-template-columns: 1fr 1fr; }
  .round > div:nth-child(2) { border-right: 0; }
  .round > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .doc { grid-template-columns: 1fr; }
  .doc nav { display: none; }
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 16px 14px; }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; }
  .icon-btn { display: inline-flex; }
  .rules { grid-template-columns: 1fr; }
  .rule { border-right: 0; border-bottom: 1px solid var(--line); }
  .rule:last-child { border-bottom: 0; }
  .check, .kv, .stat-row { grid-template-columns: 1fr 1fr; }
  .kv > div:nth-child(2), .stat-row > div:nth-child(2) { border-right: 0; }
  .kv > div:nth-child(-n+2), .stat-row > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .bar-in { gap: 12px; }
  .buy-txt { display: none; }
  .hero { padding-top: 32px; }
  .art { aspect-ratio: 1.15; }
  .round { grid-template-columns: 1fr; }
  .round > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .check { grid-template-columns: 1fr; }
  .ed-sliders { grid-template-columns: 1fr; }
  .tb .lbl { display: none; }
  .search { width: 100%; margin-left: 0; }
  .army { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card dl { grid-template-columns: 1fr 1fr; }
  .card dl > div:nth-child(3) { display: none; }
  .foot .push { margin-left: 0; }
}

/* cap maker: the AI draws (default) or the visitor places the cap by hand (.ed.hand) */
.ed:not(.hand) .hand-only { display: none !important; }
.ed.hand .ai-only { display: none !important; }
.stage .result { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gen { position: absolute; inset: 0; background: rgba(255, 255, 255, .2); backdrop-filter: blur(3px); animation: genpulse 1.8s ease-in-out infinite; }
.gen .busy { top: 50%; transform: translate(-50%, -50%); font-size: 14px; padding: 10px 14px; }
@keyframes genpulse { 50% { background: rgba(255, 255, 255, .45); } }
.versions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.versions .vl { font-size: 13px; color: var(--muted); margin-right: 4px; }
.versions .v { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; padding: 0; cursor: pointer; background: var(--panel); box-shadow: 0 0 0 1px var(--line-2); }
.versions .v.on { box-shadow: 0 0 0 2px var(--ink); }
.versions .v img { width: 100%; height: 100%; object-fit: cover; }
.ai-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* callouts */
.co { display: grid; gap: 10px; }
.co-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.co-item.gone { opacity: .6; }
.co-av img { width: 44px; height: 44px; border-radius: 50%; }
.co-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.co-head .muted { font-size: 13px; }
.co-st { margin-left: auto; }
.co-text { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink); white-space: pre-wrap; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.co-media { margin-top: 10px; max-width: min(100%, 360px); max-height: 280px; border-radius: 12px; border: 1px solid var(--line); object-fit: cover; }
.co-foot { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.co-open { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-weight: 500; }
.co-open svg { width: 12px; height: 12px; }
@media (max-width: 560px) { .co-st { margin-left: 0; } .co-open { margin-left: 0; } }

/* home: the cap over the headline, live callouts on the right */
.hero-cap { width: 132px; margin: 0 0 22px -6px; }
.hero-cap svg, .hero-cap img { width: 100%; height: auto; display: block; }
.hero-cap .prop { transform-box: view-box; transform-origin: 500px 177px; animation: spin 1.4s linear infinite; }
@media (prefers-reduced-motion: reduce) { .hero-cap .prop { animation: none; } }
.hero { align-items: start; }
.live { border: 1px solid var(--line); border-radius: 20px; padding: 16px; background: #fff; display: grid; gap: 12px; }
.live-head { display: flex; align-items: center; gap: 10px; }
.live-head h3 { font-size: 15px; }
.live-head a { margin-left: auto; font-size: 13.5px; color: var(--muted); }
.live-head a:hover { color: var(--ink); }
.live-list { display: grid; gap: 2px; max-height: 520px; overflow: hidden; }
.live-item { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; padding: 10px 8px; border-radius: 12px; }
.live-item:hover { background: var(--panel); }
.live-item.gone { opacity: .55; }
.live-item img.av { width: 38px; height: 38px; border-radius: 50%; }
.li-h { display: flex; align-items: center; gap: 6px; font-size: 13.5px; min-width: 0; }
.li-h b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.li-h span:last-child { margin-left: auto; color: var(--faint); font-size: 12px; white-space: nowrap; }
.li-t { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.li-f { display: flex; gap: 10px; align-items: center; margin-top: 5px; font-size: 12px; color: var(--muted); }
.li-f .st { padding: 3px 6px; font-size: 11px; }
.live-empty { padding: 26px 12px; text-align: center; color: var(--muted); font-size: 13.5px; }
.live-empty b { display: block; color: var(--ink); margin-bottom: 4px; font-size: 14.5px; }

/* callout cards, like pump.fun's: picture, position + profit, the author's later posts on a thread */
.feedcol { max-width: 760px; margin: 0 auto; }
.co { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.call { padding: 16px 18px 6px; border-bottom: 1px solid var(--line); }
.call:last-child { border-bottom: 0; }
.call.gone { opacity: .55; }
.call-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding-bottom: 12px; }
.call-row.up { padding-top: 2px; }
.call-side { position: relative; display: flex; justify-content: center; }
.call-side.thread::after { content: ''; position: absolute; top: 50px; bottom: -14px; left: 50%; width: 2px; margin-left: -1px; background: var(--line-2); border-radius: 1px; }
.call-av { position: relative; display: inline-flex; align-self: start; }
.call-av img { width: 44px; height: 44px; border-radius: 50%; }
.call-av.sm img { width: 32px; height: 32px; }
.call-row.up .call-side.thread::after { top: 38px; }
.call-av.on::after { content: ''; position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px #fff; }
.call-main { min-width: 0; }
.call-head { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; }
.call-head .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.call-head .name:hover { text-decoration: underline; text-underline-offset: 3px; }
.call-head .ago { color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.call-head .push { margin-left: auto; }
.call-text { margin: 5px 0 10px; color: var(--ink); overflow-wrap: anywhere; white-space: pre-line; font-size: 14.5px; line-height: 1.5; }
.call.compact .call-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; }
.call-media { display: block; max-width: 100%; max-height: 320px; border-radius: 12px; border: 1px solid var(--line); margin: 2px 0 10px; object-fit: cover; }
.call.compact .call-media { max-height: 170px; }
.pos { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.pos .coin { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pos .coin img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.pos .coin b { display: block; font-weight: 600; font-size: 14px; }
.pos .coin small { color: var(--muted); font-size: 12px; }
.pos .kv { text-align: right; display: block; border: 0; border-radius: 0; overflow: visible; background: none; padding: 0; }
.pos .kv small { display: block; color: var(--muted); font-size: 11.5px; }
.pos .kv b { font: 600 14.5px/1.3 var(--mono); white-space: nowrap; }
.pos .kv b.g { color: var(--ok); }
.pos .kv b.r { color: #b3261e; }
.pos .kv b.dim { color: var(--faint); font-family: var(--sans); font-weight: 500; font-size: 13px; }
.call.compact .pos { padding: 8px 10px; gap: 8px 14px; }
.call.compact .pos .coin img { width: 28px; height: 28px; }
.call.compact .pos .coin b { font-size: 13px; }
.call.compact .pos .kv b { font-size: 13px; }
.call-foot { display: flex; align-items: center; gap: 16px; margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.call-foot span, .call-foot a { display: inline-flex; align-items: center; gap: 5px; }
.call-foot svg { width: 14px; height: 14px; }
.call-foot a:hover { color: var(--ink); }
.call-foot .earned { color: var(--ok); font-weight: 600; }
.call-foot .mc { margin-left: auto; font-weight: 600; color: var(--ink-2); }
.call.compact .call-foot { gap: 12px; }
.live-list { max-height: 640px; overflow: hidden; display: block; }
.live-list .call { padding: 12px 4px 2px; }
@media (max-width: 560px) { .pos { grid-template-columns: 1fr auto auto; } .pos > span { display: none; } .call { padding: 14px 12px 4px; } }

/* leaderboard on the home page */
.board { margin: 8px 0 56px; }
.board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }

/* the round, inside the first screen of the home page */
.hero { padding-top: 40px; }
.hero-cap { width: 96px; margin-bottom: 16px; }
h1.display { font-size: clamp(44px, 5.4vw, 76px); }
.hero .lead { margin: 18px 0 24px; }
.round.inhero { margin: 22px 0 0; grid-template-columns: 1.15fr 1fr 1fr 1fr; border-radius: 14px; }
.round.inhero > div { padding: 14px 16px; }
.round.inhero .k { font-size: 12px; margin-bottom: 6px; }
.round.inhero .v { font-size: 17px; }
.round.inhero .v.big { font-size: 34px; }
.round.inhero .s { font-size: 11.5px; margin-top: 4px; }
.round.inhero .bar-fill { margin-top: 10px; }
@media (max-width: 560px) { .round.inhero { grid-template-columns: 1fr 1fr; } .round.inhero > div:nth-child(2) { border-right: 0; } .round.inhero > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.app .lg.n { display: flex; align-items: center; justify-content: center; font: 600 15px/1 var(--mono); color: var(--ink-2); }

/* people who were earning and left: they stay in every list, greyed, with why */
.st.out { color: var(--muted); background: var(--panel); border-color: var(--line); font-weight: 500; }
.card.out .pic img, .card.out .body > *:not(.need) { opacity: .5; }
.card.out .pic { filter: grayscale(.85); }
.card.out .chip { opacity: 1; }
.table tr.out td { background: none !important; box-shadow: none !important; color: var(--faint); }
.table tr.out td img { filter: grayscale(1); opacity: .6; }
.table tr.out td b { color: var(--muted); }
.call.out .call-av img, .call.out .call-media, .call.out .pos { filter: grayscale(1); opacity: .6; }
.call.out .call-text, .call.out .call-head .name { color: var(--muted); }
/* the home headline is a full sentence now: two lines, the round stays in the first screen */
.hero h1.display { font-size: clamp(38px, 4.3vw, 62px); line-height: 1.04; }
