/* the landing and the launcher */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; min-height: calc(100vh - 64px); padding: 56px 0 72px; position: relative; }
.hero-copy { display: grid; gap: 26px; align-content: center; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.cta [data-gh] svg { width: 20px; height: 20px; display: block; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line2); margin-top: 10px; }
.facts > div { padding: 18px 18px 0 0; display: grid; gap: 6px; }
.facts > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.facts b { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.facts span { font-size: 13px; color: var(--ink3); line-height: 1.4; }

/* the specimen: the coin in characters, framed like a catalogue plate */
.specimen { margin: 0; position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 620px; justify-self: end; display: grid; grid-template-rows: auto 1fr auto;
  border: 1px solid var(--line); border-radius: var(--r); background: radial-gradient(60% 60% at 50% 45%, rgba(255, 106, 31, .06), transparent 70%), rgba(16, 15, 13, .55); }
.specimen canvas { width: 100%; height: 100%; display: block; min-height: 0; }
.spec-top, .specimen figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; font: 500 11px/1 var(--m); letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); }
.specimen figcaption { border-top: 1px solid var(--line); }
.specimen figcaption #spec-label { color: var(--ink); letter-spacing: .06em; }
.cm { position: absolute; width: 12px; height: 12px; border-color: var(--ink3); border-style: solid; border-width: 0; }
.cm.tl { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; } .cm.tr { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.cm.bl { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; } .cm.br { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

/* ── the workbench (signed in): repos | your coin; the specimen becomes the coin's own preview */
.hero.signed { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; align-items: start; }
.hero.signed .specimen { display: none; }
.bench { display: grid; gap: 22px; }
.bench-head { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.bench-head .h2 { font-size: clamp(30px, 3.4vw, 46px); }
.bench-head .end { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.bench-grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 18px; align-items: start; }
.repos .search { padding: 12px; border-bottom: 1px solid var(--line); }
.repos .list { height: 640px; overflow: auto; position: relative; }
.repo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; position: relative; }
.repo:hover { background: rgba(236, 233, 223, .025); }
.repo.on { background: var(--acc-wash); } .repo.on::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--acc); }
.repo .nm { font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.repo .ds { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.repo .mt { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; font: 500 11.5px/1 var(--m); color: var(--ink3); margin-top: 4px; }
.repo .mt .lang { display: inline-flex; align-items: center; gap: 6px; }
.repo .mt .lang .dot { width: 8px; height: 8px; }
.repo .side { display: flex; gap: 6px; align-items: center; }
.empty { padding: 36px 20px; text-align: center; color: var(--ink3); font-size: 14px; display: grid; gap: 10px; justify-items: center; }
.empty b { color: var(--ink); font-weight: 600; font-size: 15px; }

.coinform { overflow: hidden; }
.cf { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.cf-art { padding: 18px; border-right: 1px solid var(--line); display: grid; gap: 14px; align-content: start; background: rgba(0, 0, 0, .18); }
.cf-art .mini { aspect-ratio: 1 / 1; width: 100%; border: 1px solid var(--line); border-radius: var(--r-s); background: radial-gradient(60% 60% at 50% 45%, rgba(255, 106, 31, .07), transparent 70%); }
.cf-art .mini canvas { width: 100%; height: 100%; display: block; }
.pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pic { aspect-ratio: 1; border-radius: var(--r-s); border: 1px solid var(--line2); background: var(--bg) center / cover no-repeat; cursor: pointer; position: relative; transition: border-color .15s, transform .12s; padding: 0; }
.pic:hover { border-color: var(--line3); } .pic.on { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc); }
.pic.add { display: grid; place-items: center; color: var(--ink3); font-size: 22px; }
.pic small { position: absolute; left: 0; right: 0; bottom: -18px; font: 500 9.5px/1 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--ink4); text-align: center; white-space: nowrap; }
.cf-art .real { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink3); }
.cf-art .real img { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); }
.cf-main { padding: 18px 20px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.cf-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; }
.links2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }

.bag { border: 1px solid var(--line2); border-radius: var(--r-s); display: grid; grid-template-columns: 170px minmax(0, 1fr); overflow: hidden; }
.bag .big { padding: 16px; display: grid; gap: 6px; align-content: center; border-right: 1px solid var(--line); background: var(--acc-wash); }
.bag .big b { font: 600 44px/1 var(--f); letter-spacing: -.04em; color: var(--acc); }
.bag .big span { font-size: 12px; color: var(--ink2); line-height: 1.35; }
.bag.no .big { background: transparent; } .bag.no .big b { color: var(--ink3); }
.bag .why { padding: 12px 16px; display: grid; gap: 8px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.check { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; min-width: 0; }
.check i { font-style: normal; font: 600 12px var(--m); width: 14px; flex: none; }
.check.ok i { color: var(--up); } .check.no i { color: var(--dn); }
.check span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .check em { font-style: normal; color: var(--ink3); }
.ladder-mini { display: flex; gap: 4px; }
.ladder-mini span { flex: 1; text-align: center; padding: 6px 0; border-radius: var(--r-xs); background: var(--s2); font: 500 11px/1.2 var(--m); color: var(--ink3); border: 1px solid transparent; }
.ladder-mini span.on { color: var(--acc); border-color: rgba(255, 106, 31, .4); background: var(--acc-wash); }
.ladder-mini span b { display: block; color: inherit; font-weight: 600; font-size: 12.5px; }

.launchbar { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .2); }
.launchbar .note { font-size: 12.5px; color: var(--ink3); line-height: 1.45; } .launchbar .note b { color: var(--ink2); font-weight: 500; }
.launchbar .btn { margin-left: auto; min-width: 230px; }
.launchbar .btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* the result */
.result { padding: 22px; display: grid; gap: 18px; }
.result .top { display: flex; gap: 16px; align-items: center; }
.result .top img { width: 72px; height: 72px; border-radius: var(--r); border: 1px solid var(--line2); }
.result h3 { font-size: 26px; letter-spacing: -.035em; }
.result .steps2 { display: grid; border: 1px solid var(--line); border-radius: var(--r-s); }
.result .steps2 > div { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 14px; font-size: 13.5px; }
.result .steps2 > div + div { border-top: 1px solid var(--line); }
.result .steps2 i { font-style: normal; color: var(--up); font: 600 13px var(--m); }
.result .steps2 em { font-style: normal; font: 500 11.5px var(--m); color: var(--ink3); }
.codebox { display: flex; gap: 10px; align-items: stretch; }
.codebox code { flex: 1; min-width: 0; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line2); border-radius: var(--r-s); font: 12px/1.5 var(--m); color: var(--ink2); white-space: pre-wrap; word-break: break-all; max-height: 150px; overflow: auto; }

/* ── sections */
.sec-head { display: flex; align-items: flex-end; gap: 24px; padding-bottom: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sec-head .eyebrow { width: 100%; } .sec-head .end { margin-left: auto; }
.how { padding-top: 40px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.steps article { padding: 26px 24px 28px; display: grid; gap: 10px; align-content: start; background: rgba(16, 15, 13, .5); }
.steps article + article { border-left: 1px solid var(--line); }
.steps .n { font-size: 12px; color: var(--acc); letter-spacing: .1em; }
.steps h3 { font-size: 21px; letter-spacing: -.03em; }
.steps p { margin: 0; color: var(--ink2); font-size: 14.5px; line-height: 1.55; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.rule-body { padding: 18px 20px 20px; display: grid; gap: 16px; }
.rule-body p { margin: 0; color: var(--ink2); font-size: 14.5px; line-height: 1.6; } .rule-body p b { color: var(--ink); font-weight: 500; }
.small { font-size: 13px !important; }
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ladder > div { border: 1px solid var(--line2); border-radius: var(--r-s); padding: 12px; display: grid; gap: 6px; position: relative; overflow: hidden; }
.ladder > div::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: var(--w); background: var(--acc); opacity: .85; }
.ladder b { font: 600 26px/1 var(--f); letter-spacing: -.03em; } .ladder span { font: 500 11px/1 var(--m); color: var(--ink3); letter-spacing: .04em; }
.split { display: flex; height: 64px; border-radius: var(--r-s); overflow: hidden; border: 1px solid var(--line2); }
.split > div { padding: 10px 14px; display: grid; align-content: center; gap: 2px; }
.split .you { width: var(--w); background: linear-gradient(90deg, rgba(63, 217, 138, .16), rgba(63, 217, 138, .06)); border-right: 1px solid var(--line2); }
.split .tre { flex: 1; } .split b { font-size: 20px; font-weight: 500; } .split span { font-size: 12px; color: var(--ink3); }
.mainrule { margin-top: 18px; display: flex; gap: 20px; align-items: center; padding: 18px 20px; }
.mainrule .mark { font: 600 13px var(--m); color: var(--acc-ink); background: var(--acc); padding: 7px 10px; border-radius: var(--r-xs); letter-spacing: .02em; flex: none; }
.mainrule p { margin: 0; color: var(--ink2); font-size: 14.5px; line-height: 1.6; } .mainrule p b { color: var(--ink); font-weight: 500; white-space: nowrap; }
.mainrule .end { margin-left: auto; font-size: 12.5px; white-space: nowrap; }
.chip.top { color: var(--acc-ink); background: var(--acc); border-color: var(--acc); }
@media (max-width: 860px) { .mainrule { flex-direction: column; align-items: flex-start; } .mainrule .end { margin-left: 0; white-space: normal; } }
.coins { padding-top: 96px; display: grid; gap: 18px; }
.coins .sec-head { margin-bottom: 8px; }
.rows .row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr) 70px; gap: 16px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); transition: background .12s; }
.rows .row:last-child { border-bottom: 0; }
.rows a.row:hover { background: rgba(236, 233, 223, .025); }
.rows .row.head { font: 500 10.5px/1 var(--m); letter-spacing: .12em; text-transform: uppercase; color: var(--ink4); padding-top: 10px; padding-bottom: 10px; }
.cn { display: flex; gap: 12px; align-items: center; min-width: 0; }
.cn img { width: 38px; height: 38px; border-radius: var(--r-s); border: 1px solid var(--line2); flex: none; background: var(--s2); }
.cn div { min-width: 0; } .cn b { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn span { font: 500 12px var(--m); color: var(--ink3); }
.by { display: flex; gap: 8px; align-items: center; min-width: 0; font-size: 13px; color: var(--ink2); }
.by img { width: 20px; height: 20px; border-radius: 50%; } .by span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows .num.r { text-align: right; }
.none { padding: 40px 20px; text-align: center; display: grid; gap: 8px; justify-items: center; color: var(--ink3); font-size: 14px; }
.none b { color: var(--ink); font-size: 16px; font-weight: 600; }

/* the dev sign-in sheet */
.devsign { position: fixed; inset: 0; z-index: 80; background: rgba(5, 5, 4, .7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: rise .25s var(--ease); }
.devsign form { width: min(460px, 100%); }

@media (max-width: 1180px) {
  .bench-grid { grid-template-columns: 1fr; }
  .repos .list { height: 360px; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; gap: 32px; }
  .specimen { justify-self: center; max-width: 520px; }
  .steps, .rules { grid-template-columns: 1fr; } .steps article + article { border-left: 0; border-top: 1px solid var(--line); }
  .cf { grid-template-columns: 1fr; } .cf-art { border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: 140px 1fr; align-items: start; }
  .cf-art .real { grid-column: 1 / -1; }
  .rows .row { grid-template-columns: minmax(0, 1fr) auto; } .rows .row > :nth-child(n+3):not(:last-child) { display: none; } .rows .row.head { display: none; }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; } .facts > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
  .cf-row, .links2, .checks { grid-template-columns: 1fr; }
  .bag { grid-template-columns: 1fr; } .bag .big { border-right: 0; border-bottom: 1px solid var(--line); }
  .launchbar { flex-direction: column; align-items: stretch; } .launchbar .btn { margin-left: 0; width: 100%; }
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .h1 { font-size: 46px; }
}
