:root {
  --bg: #0b0a10; --panel: #15131d; --line: #262233; --text: #f1eef9; --muted: #9b95b0;
  --accent: #ff5c39; --accent-ink: #fff; --ok: #39d98a; --warn: #f5b942; --fail: #ff6b6b; --gold: #f7c948;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #faf9fc; --panel: #fff; --line: #e7e3ef; --text: #16131f; --muted: #625c74; --accent: #e8431f; --accent-ink: #fff; --ok: #12a35c; --warn: #b7791f; --fail: #d93025; --gold: #b58105; color-scheme: light; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { font-size: .88em; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: .05em .35em; word-break: break-all; }
pre { font-size: .85em; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1rem; overflow-x: auto; white-space: pre; }
pre code { border: 0; padding: 0; background: none; word-break: normal; white-space: pre-wrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
main { max-width: 820px; margin: 0 auto; padding: 0 16px 3rem; }
.top { max-width: 820px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .45rem; color: var(--text); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--accent); }
.mark { width: 26px; height: 26px; color: var(--accent); }
.top nav { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .92rem; align-items: center; }
.top nav a:not(.btn) { color: var(--muted); }
.btn { font: inherit; font-weight: 700; padding: .75rem 1.2rem; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); cursor: pointer; display: inline-block; text-align: center; white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.wide { width: 100%; }
.small-btn { padding: .4rem .85rem; font-size: .9rem; }
.chip { font: inherit; font-size: .85rem; display: inline-block; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--accent); text-decoration: none; }
.chip.danger { color: var(--fail); }
.linkish { font: inherit; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; }
form.inline { display: inline; }
.hero { text-align: center; padding: 3.2rem 0 1.5rem; }
.hero.narrow { max-width: 460px; margin: 0 auto; text-align: left; }
.hero.narrow h1, .hero.narrow .lede { text-align: center; }
.hero h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); line-height: 1.04; margin: 0 0 .7rem; letter-spacing: -.04em; }
.lede { color: var(--muted); font-size: 1.1rem; margin: 0 auto 1.4rem; max-width: 36rem; }
.page-h { font-size: 1.8rem; letter-spacing: -.02em; margin: 1.6rem 0 .6rem; }
.section-h { font-size: 1.1rem; margin: 2.2rem 0 .6rem; display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; margin: 1rem 0; }
.card h2 { margin: 0 0 .6rem; font-size: 1.1rem; }
details.card > summary { cursor: pointer; font-weight: 700; }
details.card[open] > summary { margin-bottom: .6rem; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1rem; }
.grid3 .card { margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .85rem; margin-right: .4rem; }
label { display: block; font-weight: 600; margin: .9rem 0 .35rem; }
label .muted { font-weight: 400; }
input, select, textarea { width: 100%; font: inherit; padding: .7rem .85rem; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
[aria-invalid="true"] { border-color: var(--fail); }
.url-row { display: flex; gap: .5rem; }
.url-row input { flex: 1; min-width: 0; font-size: 1.05rem; }
.submit-form.compact { max-width: 560px; margin: 0 auto; }
.submit-form.busy button { opacity: .6; pointer-events: none; }
.busy-note { margin-top: .8rem; color: var(--accent); font-weight: 600; }
.busy-note::before { content: ""; display: inline-block; width: .8em; height: .8em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; margin-right: .5em; vertical-align: -.1em; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
details summary { cursor: pointer; font-weight: 600; margin-top: .8rem; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin: .8rem 0; }
.row form { margin: 0; }
.note { border-left: 3px solid var(--accent); padding: .6rem .9rem; background: var(--panel); border-radius: 0 8px 8px 0; margin: 1rem 0; }
.note.error { border-left-color: var(--fail); }
.note.launched { border-left-color: var(--ok); }
.empty { color: var(--muted); padding: 1.5rem; text-align: center; border: 1px dashed var(--line); border-radius: 12px; }
.search { margin: .6rem 0; }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin: .4rem 0; }
.tabs a { padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.tabs a[aria-current] { border-color: var(--accent); color: var(--text); }
/* the board */
.board { list-style: none; padding: 0; margin: 0; }
.row-item { display: flex; align-items: center; gap: .8rem; padding: .7rem .5rem; border-bottom: 1px solid var(--line); }
.row-item:last-child { border-bottom: 0; }
.rank { width: 1.6rem; text-align: right; color: var(--muted); font-weight: 700; flex: none; }
.row-main { display: flex; align-items: center; gap: .85rem; flex: 1; min-width: 0; color: var(--text); }
.row-main:hover { text-decoration: none; }
.row-main:hover b { color: var(--accent); }
.row-text { display: flex; flex-direction: column; min-width: 0; }
.row-text .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
.logo { border-radius: 12px; object-fit: contain; background: #fff1; flex: none; }
.logo-letter { display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 1.3rem; }
.tick { color: var(--ok); font-weight: 800; }
.tags { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .2rem; }
.tag { font-size: .75rem; padding: .05rem .5rem; border-radius: 999px; background: var(--line); color: var(--muted); }
a.tag:hover { color: var(--text); text-decoration: none; }
.vote-form { margin: 0; flex: none; }
.vote { font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 3.4rem; height: 3.4rem; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; line-height: 1.1; }
.vote:hover { border-color: var(--accent); }
.vote .arrow { color: var(--accent); font-size: .85rem; }
.vote .count { font-weight: 800; }
.vote.voted { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.vote.voted .arrow { color: var(--accent-ink); }
.vote.big { min-width: 5rem; height: 4.2rem; font-size: 1.15rem; }
.vote.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.15); } }
/* a product */
.product-head { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: 1.4rem; }
.product-title { flex: 1; min-width: 220px; }
.product-title h1 { margin: 0; font-size: 2rem; letter-spacing: -.02em; line-height: 1.1; }
.product-title .lede { margin: .3rem 0 .4rem; text-align: left; }
.product-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.badges { display: flex; gap: .35rem; flex-wrap: wrap; margin: 0; }
.pill { font-size: .78rem; padding: .15rem .6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill.ok { color: var(--ok); border-color: var(--ok); }
.pill.gold { color: var(--gold); border-color: var(--gold); font-weight: 700; }
.gallery { display: flex; gap: .7rem; overflow-x: auto; scroll-snap-type: x mandatory; margin: 1.2rem 0; padding-bottom: .4rem; }
.gallery a { flex: none; scroll-snap-align: start; }
.gallery img { display: block; height: 260px; width: auto; max-width: 85vw; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.videos { display: grid; gap: .8rem; margin: 1rem 0; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.desc { white-space: pre-line; margin-top: 0; }
.socials, .share { display: flex; gap: .4rem; flex-wrap: wrap; }
.maker { margin: .8rem 0 .2rem; }
.address { display: flex; gap: .5rem; align-items: center; margin: .3rem 0 .6rem; }
.address code { flex: 1; padding: .55rem .7rem; }
.copy { font: inherit; font-size: .85rem; padding: .5rem .8rem; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; white-space: nowrap; }
.pics { border: 1px solid var(--line); border-radius: 12px; padding: .8rem; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .7rem; }
.pics legend { font-weight: 600; padding: 0 .3rem; }
.pic { margin: 0; font-weight: 400; font-size: .85rem; }
.pic img { width: 100%; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; margin-bottom: .3rem; background: var(--bg); }
.pic input { width: auto; }
.payee { text-align: center; padding: 2rem 0 .5rem; }
.ad-unit { margin: 24px auto; display: flex; justify-content: center; }
.ad-unit iframe { border: 0; display: block; background: transparent; }
.ad-text_link { max-width: 820px; padding: 0 16px; }
.ad-text_link iframe { width: 100%; height: 40px; }
.ad-banner_300x250 iframe { width: 300px; height: 250px; }
.ad-banner_728x90 iframe { width: 728px; max-width: 100%; height: 90px; }
@media (max-width: 760px) { .ad-banner_728x90 { display: none; } }
@media (max-width: 340px) { .ad-banner_300x250 { margin-inline: calc(50% - 50vw); } }
footer { max-width: 820px; margin: 2rem auto 0; padding: 1.5rem 16px 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--muted); }
@media (max-width: 560px) {
  .url-row { flex-direction: column; }
  .gallery img { height: 190px; }
  .product-title h1 { font-size: 1.6rem; }
  .row-item { gap: .55rem; }
}
/* the Moshpit ring bar (pit.world/ring), on every page */
.ring-bar { display: flex; align-items: center; gap: 4px 16px; padding: 6px 16px; border-bottom: 1px solid var(--line); background: var(--panel); font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.ring-bar::-webkit-scrollbar { display: none; }
.ring-bar a { color: var(--muted); }
.ring-bar a:hover, .ring-bar a:focus-visible { color: var(--accent); text-decoration: underline; }
.ring-bar .ring-home { color: var(--accent); font-weight: 700; }
.ring-bar .ring-sites { display: inline-flex; gap: 12px; padding: 0 12px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.ring-bar [aria-current='page'] { color: var(--text); }
@media (max-width: 640px) { .ring-bar .ring-sites, .ring-bar .ring-home span { display: none; } }
/* OpenIcon icons: inline SVG in currentColor */
.i { width: 1em; height: 1em; vertical-align: -.125em; flex: none; }
.chip .i, .btn .i { margin-right: .15em; }
.vote .arrow .i { width: .95em; height: .95em; }
.mini-h { font-size: .95rem; margin: 1.1rem 0 .4rem; display: flex; gap: .4rem; align-items: center; }
.stack p { margin: .25rem 0; }
.plans { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
