:root {
  --ink: #0a0a0b;
  --ink-2: #141416;
  --ink-3: #1d1d21;
  --bone: #f3f2ee;
  --bone-2: #e7e5df;
  --paper: #ffffff;
  --text: #f3f2ee;
  --mute: #8d8c88;
  --mute-d: #6b6a66;
  --line: rgba(243, 242, 238, 0.1);
  --line-d: rgba(10, 10, 11, 0.1);
  --acc: #3b5bff;
  --acc-2: #a9b8ff;
  --good: #3ccf8e;
  --bad: #ff6b5b;
  --wash: linear-gradient(135deg, #3b5bff 0%, #8a5cff 48%, #ffb38a 100%);
  --r: 28px;
  --lip: 36px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; }
html.lenis, html.lenis body { height: auto; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--acc); color: #fff; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.mute { color: var(--mute); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); font-size: 0.92em; letter-spacing: -0.01em; }
.hide { display: none !important; }

/* ── type ─────────────────────────────────────────── */
.display { font-weight: 600; letter-spacing: -0.045em; line-height: 0.98; font-size: clamp(44px, 8.4vw, 112px); margin: 0; text-wrap: balance; }
.h2 { font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-size: clamp(36px, 5.6vw, 72px); margin: 0; text-wrap: balance; }
.h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; font-size: clamp(22px, 2.2vw, 28px); margin: 0; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--mute); max-width: 34em; margin: 22px auto 0; text-wrap: pretty; }
.center { text-align: center; }
/* faces set into a headline, the way usual.money sets coins */
.faces { display: inline-flex; vertical-align: -0.08em; margin: 0 0.08em; }
.faces img { width: 0.86em; height: 0.86em; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 0.05em solid var(--ink); margin-left: -0.2em; }
.faces img:first-child { margin-left: 0; }
.bone .faces img { border-color: var(--bone); }

/* ── nav ──────────────────────────────────────────── */
.nav { position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%); width: min(1180px, 100% - 24px); display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(20, 20, 22, 0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.03em; font-size: 18px; color: var(--bone); }
.brand svg { width: 26px; height: 26px; color: var(--bone); }
.links { display: flex; gap: 4px; margin-left: 10px; }
.links a { padding: 8px 12px; border-radius: 999px; color: var(--mute); font-size: 15px; }
.links a:hover, .links a[aria-current] { color: var(--bone); background: rgba(255, 255, 255, 0.06); }
.nav-r { margin-left: auto; display: flex; gap: 8px; }

/* ── pills ────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px 0 22px; border-radius: 999px; border: 0; background: var(--bone); color: var(--ink); font-weight: 500; font-size: 16px; cursor: pointer; white-space: nowrap; transition: background 0.2s, transform 0.2s; }
.pill .dot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bone); transition: transform 0.25s; }
.pill .dot svg { width: 15px; height: 15px; }
.pill:hover .dot { transform: translateX(2px); }
.pill.sm { height: 40px; font-size: 15px; padding: 0 6px 0 16px; }
.pill.sm .dot { width: 28px; height: 28px; }
.pill.ghost { background: transparent; color: var(--bone); border: 1px solid var(--line); padding: 0 18px; }
.pill.ghost:hover { background: rgba(255, 255, 255, 0.06); }
.pill.acc { background: var(--acc); color: #fff; }
.pill.acc .dot { background: #fff; color: var(--acc); }
.pill.dark { background: var(--ink); color: var(--bone); }
.pill.dark .dot { background: var(--bone); color: var(--ink); }
.pill:disabled { opacity: 0.45; cursor: not-allowed; }
.pill:not(.sm):not(.ghost):not(:has(.dot)) { padding: 0 24px; }
.ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ── slabs: full bleed, alternating, each new one lipped over the last ── */
.slab { position: relative; padding: 120px 0; }
.slab + .slab { margin-top: calc(var(--lip) * -1); border-radius: var(--lip) var(--lip) 0 0; }
.bone { background: var(--bone); color: var(--ink); }
.bone .mute, .bone .lede { color: var(--mute-d); }
.ink { background: var(--ink); color: var(--text); }
.ink2 { background: var(--ink-2); }

/* ── hero ─────────────────────────────────────────── */
.hero { padding: 168px 0 0; text-align: center; overflow: hidden; }
.reel { margin-top: 70px; display: flex; gap: 14px; width: max-content; animation: drift 80s linear infinite; padding-bottom: 120px; }
.reel:hover { animation-play-state: paused; }
.reel figure { margin: 0; width: 230px; flex: none; border-radius: 22px; overflow: hidden; position: relative; background: var(--ink-3); aspect-ratio: 3 / 4; }
.reel figure:nth-child(even) { transform: translateY(36px); }
.reel img { width: 100%; height: 100%; object-fit: cover; }
.reel figcaption { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(10, 10, 11, 0.62); backdrop-filter: blur(8px); font-size: 12px; color: var(--bone); }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .reel { animation: none; } }

/* ── cards ────────────────────────────────────────── */
.card { border-radius: var(--r); background: var(--paper); color: var(--ink); padding: 28px; }
.ink .card, .card.dark { background: var(--ink-3); color: var(--text); }
.card.wash { background: var(--wash); color: #fff; }
.stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 22px; }
.stat small { display: block; font-size: 13px; color: var(--mute); margin-bottom: 3px; }
.bone .stat small, .card:not(.dark) .stat small { color: var(--mute-d); }
.card.wash .stat small { color: rgba(255, 255, 255, 0.72); }
.stat b { font-weight: 600; font-size: 26px; letter-spacing: -0.03em; }

/* ── one sentence to a coin (home) ──────────────── */
.flow { display: grid; grid-template-columns: 1.1fr 0.9fr 0.9fr 1fr; gap: 14px; margin-top: 64px; align-items: stretch; }
.flow .card { display: flex; flex-direction: column; padding: 14px; }
.flow .tag { font-family: var(--mono); font-size: 12px; color: var(--mute-d); padding: 6px 8px 10px; }
.flow .shot { border-radius: 18px; overflow: hidden; flex: 1; min-height: 260px; background: var(--bone-2); }
.flow .shot img { width: 100%; height: 100%; object-fit: cover; }
.sentence { flex: 1; display: flex; align-items: flex-end; padding: 12px; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; background: var(--bone); border-radius: 18px; }
.ticker { flex: 1; display: grid; place-content: center; text-align: center; gap: 8px; background: var(--ink); color: var(--bone); border-radius: 18px; padding: 20px; }
.ticker .tk { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; }
.ticker .mute { font-size: 14px; }

/* ── video ────────────────────────────────────────── */
.film { position: relative; margin-top: 56px; border-radius: var(--r); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.film video { width: 100%; height: 100%; object-fit: cover; }
.film .snd { position: absolute; right: 16px; bottom: 16px; height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: rgba(10, 10, 11, 0.6); backdrop-filter: blur(10px); color: var(--bone); cursor: pointer; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; }
.chip { padding: 9px 15px; border-radius: 999px; background: var(--ink-3); color: var(--bone); font-size: 14px; border: 1px solid transparent; cursor: default; }
.bone .chip { background: var(--paper); color: var(--ink); }
button.chip { cursor: pointer; }
button.chip[aria-pressed="true"] { background: var(--acc); color: #fff; }

/* ── the split ────────────────────────────────────── */
.split { display: flex; height: 92px; border-radius: 22px; overflow: hidden; margin-top: 60px; gap: 4px; }
.split > div { display: flex; flex-direction: column; justify-content: center; padding: 0 22px; min-width: 0; }
.split b { font-size: 30px; letter-spacing: -0.04em; font-weight: 600; }
.split span { font-size: 13px; opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.split .burn { background: var(--ink); color: var(--bone); }
.split .ai { background: var(--wash); color: #fff; }
.split .you { background: var(--paper); color: var(--ink); }
.under { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.under p { margin: 0; color: var(--mute); font-size: 15px; }

/* ── rulebook ─────────────────────────────────────── */
.rules { counter-reset: r; list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rules li { counter-increment: r; background: var(--paper); border-radius: var(--r); padding: 26px 28px 28px; color: var(--ink); }
.rules li::before { content: counter(r, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--mute-d); display: block; margin-bottom: 26px; }
.rules b { display: block; font-size: 21px; letter-spacing: -0.02em; margin-bottom: 6px; font-weight: 600; }
.rules span { color: var(--mute-d); font-size: 15px; }

/* ── cast grid ────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 48px; }
.person { border-radius: 22px; overflow: hidden; background: var(--ink-3); color: var(--bone); display: block; transition: transform 0.25s; }
.person:hover { transform: translateY(-3px); }
.person .ph { aspect-ratio: 3 / 4; background: var(--ink-2); }
.person .ph img { width: 100%; height: 100%; object-fit: cover; }
.person .meta { padding: 14px 16px 16px; display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.person .meta b { display: block; font-weight: 600; letter-spacing: -0.02em; }
.person .meta small { color: var(--mute); font-size: 13px; }
.person .cap { text-align: right; }
.bone .person { background: var(--paper); color: var(--ink); }
.empty { border: 1px dashed var(--line); border-radius: 22px; padding: 46px 20px; text-align: center; color: var(--mute); grid-column: 1 / -1; }
.bone .empty { border-color: var(--line-d); color: var(--mute-d); }

/* ── closing ──────────────────────────────────────── */
.closing { text-align: center; padding-bottom: 140px; }
.closing .faces img { width: 1.1em; height: 1.1em; }

/* ── footer ───────────────────────────────────────── */
.foot { background: var(--ink); border-top: 1px solid var(--line); padding: 30px 0 40px; }
.footline { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.footline nav { display: flex; gap: 18px; color: var(--mute); }
.footline nav a:hover { color: var(--bone); }
.footline .mute { margin-left: auto; }

/* ── app pages ────────────────────────────────────── */
.page { padding: 132px 0 110px; min-height: 80vh; }
.panel { background: var(--ink-2); border-radius: var(--r); padding: 28px; border: 1px solid var(--line); }
.steps { display: flex; gap: 8px; justify-content: center; margin: 22px 0 34px; flex-wrap: wrap; }
.steps span { padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--mute); background: var(--ink-2); }
.steps span.on { background: var(--bone); color: var(--ink); }
.steps span.done { color: var(--bone); }
label.f { display: block; font-size: 14px; color: var(--mute); margin: 0 0 8px; }
.inp { width: 100%; border-radius: 18px; border: 1px solid var(--line); background: var(--ink); padding: 15px 18px; font-size: 17px; outline: none; transition: border-color 0.2s; }
.inp:focus { border-color: var(--acc); }
textarea.inp { resize: vertical; min-height: 112px; line-height: 1.4; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 160px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--ink); border: 1px solid var(--line); gap: 2px; }
.seg button { border: 0; background: none; padding: 9px 16px; border-radius: 999px; cursor: pointer; color: var(--mute); font-size: 15px; }
.seg button[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
.looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.look { position: relative; border: 2px solid transparent; border-radius: 16px; overflow: hidden; padding: 0; background: var(--ink-3); cursor: pointer; aspect-ratio: 3 / 4; }
.look img { width: 100%; height: 100%; object-fit: cover; }
.look span { position: absolute; left: 6px; bottom: 6px; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(10, 10, 11, 0.65); color: var(--bone); }
.look[aria-pressed="true"] { border-color: var(--acc); }
.drop { display: flex; align-items: center; gap: 14px; border: 1px dashed var(--line); border-radius: 18px; padding: 14px; cursor: pointer; }
.drop .pv { width: 56px; height: 56px; border-radius: 14px; background: var(--ink-3) center / cover; flex: none; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shotbox { position: relative; border-radius: 22px; overflow: hidden; background: var(--ink-3); aspect-ratio: 3 / 4; display: grid; place-items: center; }
.shotbox img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shotbox .lbl { position: absolute; left: 12px; top: 12px; z-index: 2; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(10, 10, 11, 0.65); }
.shotbox .redo { position: absolute; right: 10px; bottom: 10px; z-index: 2; }
.shotbox .wait { color: var(--mute); font-size: 14px; text-align: center; padding: 20px; }
.shimmer { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.06) 50%, transparent 70%) var(--ink-3); background-size: 200% 100%; animation: sh 1.6s linear infinite; }
@keyframes sh { to { background-position: -200% 0; } }
.status { min-height: 22px; font-size: 14px; color: var(--mute); margin-top: 14px; }
.status.bad { color: var(--bad); }
.status.good { color: var(--good); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv:last-child { border-bottom: 0; }
.range { width: 100%; accent-color: var(--acc); }
.mini-split { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 3px; margin: 14px 0 8px; }
.mini-split i { display: block; }
.mini-split .b { background: var(--bone); } .mini-split .a { background: var(--acc); } .mini-split .y { background: var(--mute-d); }
.legend { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); }
.profile { display: grid; grid-template-columns: 380px 1fr; gap: 22px; align-items: start; }
.profile .side { position: sticky; top: 96px; display: grid; gap: 14px; }
.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.vid { border-radius: 18px; overflow: hidden; background: var(--ink-3); aspect-ratio: 9 / 16; position: relative; display: grid; place-items: center; }
.vid video { width: 100%; height: 100%; object-fit: cover; }
.vid .lbl { position: absolute; left: 8px; top: 8px; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(10, 10, 11, 0.65); }
.log { font-family: var(--mono); font-size: 12.5px; max-height: 340px; overflow: auto; }
.log div { display: grid; grid-template-columns: 82px 74px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--mute); }
.log div b { color: var(--bone); font-weight: 500; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.badge.frozen::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bad); }
.copy { cursor: pointer; border: 0; background: none; padding: 0; color: var(--acc-2); }

/* ── wallet dialog ────────────────────────────────── */
.wallets-dlg { border: 1px solid var(--line); border-radius: 26px; background: var(--ink-2); color: var(--text); padding: 26px; width: min(400px, 100% - 32px); }
.wallets-dlg::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
.wallets-dlg h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.wallets-dlg .sub { color: var(--mute); margin: 6px 0 18px; font-size: 14px; }
.wl { display: grid; gap: 8px; }
.wopt { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--ink); cursor: pointer; text-align: left; }
.wopt:hover { border-color: var(--acc); }
.wopt b { font-weight: 500; flex: 1; }
.wopt small { color: var(--mute); }
.wic { width: 32px; height: 32px; border-radius: 10px; background: var(--ink-3); display: grid; place-items: center; overflow: hidden; }
.wic img { width: 100%; height: 100%; }
.wallets-dlg .msg { min-height: 20px; font-size: 14px; color: var(--mute); margin: 12px 0 6px; }
.wallets-dlg .msg.bad { color: var(--bad); }
.wallets-dlg .wclose { width: 100%; justify-content: center; }
.btn.ghost.wclose { height: 44px; border-radius: 999px; border: 1px solid var(--line); background: none; cursor: pointer; }

/* ── reveal ───────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ── narrow ───────────────────────────────────────── */
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .profile { grid-template-columns: 1fr; }
  .profile .side { position: static; }
}
@media (max-width: 720px) {
  .links, .hide-sm { display: none; }
  .slab { padding: 88px 0; }
  .hero { padding-top: 132px; }
  .reel figure { width: 160px; }
  .rules, .under { grid-template-columns: 1fr; }
  .split { flex-direction: column; height: auto; }
  .split > div { padding: 16px 20px; flex: none !important; }
  .footline .mute { margin-left: 0; }
  .duo { gap: 8px; }
  .flow .shot { min-height: 200px; }
  .sentence { font-size: 19px; }
  .log div { grid-template-columns: 70px 1fr; }
  .log div span:last-child { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .flow { grid-template-columns: 1fr 1fr; gap: 8px; }
  .flow > .card:first-child, .flow > .card:last-child { grid-column: 1 / -1; }
  .flow .shot { min-height: 0; aspect-ratio: 3 / 4; }
  .ticker { padding: 26px; }
}

/* ── ballot, toggles, video actions ──────────────── */
.ballot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opt { position: relative; overflow: hidden; text-align: left; border: 1px solid var(--line); background: var(--ink); border-radius: 18px; padding: 16px; cursor: pointer; }
.opt:hover { border-color: var(--acc); }
.opt[aria-pressed="true"] { border-color: var(--acc); }
.opt b { display: block; font-weight: 500; position: relative; }
.opt small { color: var(--mute); position: relative; }
.opt i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(59, 91, 255, 0.18); transition: width 0.4s; }
.opt.win::after { content: "Leading"; position: absolute; right: 12px; top: 12px; font-size: 11px; color: var(--acc-2); }
.toggles { display: grid; gap: 10px; margin-top: 16px; }
.tg { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; }
.tg input { accent-color: var(--acc); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.tg b { display: block; font-weight: 500; }
.tg small { display: block; font-size: 13px; margin-top: 2px; }
.tg select { background: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 1px 4px; color: var(--bone); }
.vact { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; z-index: 2; }
.vact a { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(10, 10, 11, 0.7); color: var(--bone); backdrop-filter: blur(6px); }
.vid.has-video .vact { bottom: 44px; }
@media (max-width: 720px) { .ballot { grid-template-columns: 1fr; } }

/* ── feed ─────────────────────────────────────────── */
.feedpage { overflow: hidden; }
.reelfeed { height: 100dvh; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; }
.clip { position: relative; height: 100dvh; scroll-snap-align: start; display: grid; place-items: center; background: #000; }
.clip video { height: 100%; max-width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.clip-meta { position: absolute; left: 50%; transform: translateX(-50%); bottom: 26px; width: min(480px, 100% - 32px); display: grid; gap: 12px; }
.who { display: flex; gap: 10px; align-items: center; }
.who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 2px solid var(--bone); }
.who b { display: block; font-weight: 600; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.who small { color: rgba(243, 242, 238, 0.8); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.clip-act { display: flex; gap: 8px; flex-wrap: wrap; }
.clip-act .pill.ghost { background: rgba(10, 10, 11, 0.5); backdrop-filter: blur(8px); }
.clip .snd { position: absolute; right: 16px; top: 84px; height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(10, 10, 11, 0.6); color: var(--bone); cursor: pointer; font-size: 13px; }
.empty-feed { text-align: center; padding: 0 16px; }

.extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; text-align: left; }
.extras .card { padding: 24px; }
.extras b { display: block; font-size: 19px; letter-spacing: -0.02em; font-weight: 600; margin-bottom: 8px; }
.extras p { margin: 0; font-size: 15px; color: var(--mute); }
.extras .card.wash p { color: rgba(255, 255, 255, 0.85); }
@media (max-width: 960px) { .extras { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .extras { grid-template-columns: 1fr; } }

/* ── app shell ────────────────────────────────────── */
body[data-app] { --side: 232px; }
.side-nav { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: var(--side); padding: 20px 14px; display: flex; flex-direction: column; gap: 26px; border-right: 1px solid var(--line); background: var(--ink); }
.side-nav .brand { padding: 4px 8px; }
.side-nav nav { display: grid; gap: 2px; }
.side-nav nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; color: var(--mute); font-size: 15px; font-weight: 500; }
.side-nav nav a svg { width: 20px; height: 20px; }
.side-nav nav a:hover { color: var(--bone); background: rgba(255, 255, 255, 0.05); }
.side-nav nav a[aria-current] { color: var(--bone); background: var(--ink-3); }
.side-foot { margin-top: auto; font-size: 12px; padding: 0 8px; }
.topbar { position: sticky; z-index: 30; top: 0; margin-left: var(--side); display: flex; align-items: center; gap: 14px; padding: 12px 24px; background: rgba(10, 10, 11, 0.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar .pill { margin-left: auto; }
.only-sm { display: none !important; }
.search { position: relative; display: flex; align-items: center; gap: 8px; width: min(380px, 100%); height: 40px; padding: 0 12px; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--line); color: var(--mute); }
.search svg { width: 17px; height: 17px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 15px; }
.search kbd { font: 12px var(--mono); padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); }
.results { position: absolute; top: 58px; left: 24px; width: min(380px, 100% - 48px); background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; padding: 6px; z-index: 60; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.results a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.results a:hover { background: var(--ink-3); }
.results img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.results b { display: block; font-weight: 500; font-size: 14px; }
.results small { color: var(--mute); font-size: 12px; }
.results em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--mute); }
.results p { margin: 8px 10px; }
.app-main { margin-left: var(--side); padding: 28px 24px 90px; min-height: calc(100vh - 65px); }
.app-main .wrap { width: min(1180px, 100%); }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.page-title h1 { font-size: 30px; letter-spacing: -0.04em; font-weight: 600; margin: 0; }
body[data-app] .reelfeed { height: calc(100dvh - 65px); }
body[data-app] .clip { height: calc(100dvh - 65px); }
@media (max-width: 860px) {
  body[data-app] { --side: 0px; }
  .side-nav { top: auto; right: 0; width: auto; height: 64px; flex-direction: row; padding: 0; border-right: 0; border-top: 1px solid var(--line); z-index: 70; }
  .side-nav .brand, .side-foot { display: none; }
  .side-nav nav { grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
  .side-nav nav a { flex-direction: column; gap: 3px; padding: 9px 2px; font-size: 11px; border-radius: 0; background: none !important; }
  .side-nav nav a[aria-current] { color: var(--bone); }
  .topbar { padding: 10px 14px; gap: 10px; }
  .only-sm { display: inline-flex !important; }
  .only-sm span { display: none; }
  .search kbd { display: none; }
  .app-main { padding: 18px 14px 96px; }
  body[data-app] .reelfeed, body[data-app] .clip { height: calc(100dvh - 61px - 64px); }
}

/* ── coins ────────────────────────────────────────── */
.up { color: var(--good); } .down { color: var(--bad); }
.topcoin { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line); margin-bottom: 18px; }
.topcoin img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px; }
.topcoin h2 { margin: 10px 0 2px; font-size: 32px; letter-spacing: -0.04em; font-weight: 600; }
.coinlist { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.crow { display: grid; grid-template-columns: 40px 2.2fr 1fr 0.8fr 0.8fr 0.7fr; gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 15px; }
.crow:first-child { border-top: 0; }
a.crow:hover { background: var(--ink-2); }
.crow.head { font-size: 12px; color: var(--mute); background: var(--ink-2); }
.who2 { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who2 img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; flex: none; }
.who2 b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who2 small { color: var(--mute); font-size: 12px; }
.coinlist .empty { border: 0; border-radius: 0; }
@media (max-width: 720px) {
  .topcoin { grid-template-columns: 110px 1fr; gap: 14px; }
  .topcoin h2 { font-size: 22px; }
  .topcoin .stats { gap: 16px; }
  .topcoin .stat b { font-size: 18px; }
  .crow { grid-template-columns: 26px 2fr 1fr 0.8fr 0.6fr; padding: 10px 12px; gap: 8px; font-size: 13px; }
}

/* ── create: builder + stage ──────────────────────── */
.creator { display: grid; grid-template-columns: 400px 1fr; gap: 18px; align-items: start; }
.builder { position: sticky; top: 86px; max-height: calc(100vh - 106px); overflow: auto; padding: 22px; }
.grp { margin-top: 16px; }
.grp-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.grp-h b { font-size: 14px; font-weight: 500; }
.grp-h small { color: var(--mute); font-size: 12px; }
.chips2 { display: flex; flex-wrap: wrap; gap: 6px; }
.chip2 { border: 1px solid var(--line); background: var(--ink); border-radius: 999px; padding: 7px 12px; font-size: 13px; cursor: pointer; color: var(--bone); }
.chip2:hover { border-color: rgba(243, 242, 238, 0.3); }
.chip2[aria-pressed="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.typecards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.typecard { position: relative; border: 2px solid transparent; border-radius: 16px; overflow: hidden; padding: 0; cursor: pointer; aspect-ratio: 3 / 4; background: var(--ink-3); }
.typecard img { width: 100%; height: 100%; object-fit: cover; }
.typecard span { position: absolute; left: 6px; bottom: 6px; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(10, 10, 11, 0.7); color: var(--bone); }
.typecard[aria-pressed="true"] { border-color: var(--acc); }
.build-go { position: sticky; bottom: -22px; margin: 18px -22px -22px; padding: 14px 22px 18px; background: var(--ink-2); border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stage { display: grid; gap: 14px; }
.stage-intro { text-align: center; padding: 48px 24px; }
.stage-intro p { margin: 8px 0 26px; }
.intro-faces { display: flex; justify-content: center; }
.intro-faces img { width: 92px; height: 122px; object-fit: cover; border-radius: 16px; border: 3px solid var(--ink-2); margin-left: -16px; transform: rotate(var(--r, 0deg)); }
.intro-faces img:nth-child(1) { --r: -6deg; margin-left: 0; } .intro-faces img:nth-child(2) { --r: 3deg; } .intro-faces img:nth-child(3) { --r: -2deg; } .intro-faces img:nth-child(4) { --r: 5deg; }
.takes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.take { position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--ink-3); cursor: pointer; }
.take img { width: 100%; height: 100%; object-fit: cover; }
.take:hover { border-color: rgba(243, 242, 238, 0.4); }
.take[aria-pressed="true"] { border-color: var(--acc); }
.take .n { position: absolute; left: 8px; top: 8px; font: 12px var(--mono); padding: 2px 8px; border-radius: 999px; background: rgba(10, 10, 11, 0.65); color: var(--bone); }
@media (max-width: 1100px) { .creator { grid-template-columns: 1fr; } .builder { position: static; max-height: none; } .build-go { position: static; margin: 18px 0 0; padding: 0; background: none; border: 0; } }
@media (max-width: 620px) { .takes { grid-template-columns: 1fr 1fr; } }

/* ── studio page ──────────────────────────────────── */
.studio { display: grid; grid-template-columns: 360px 1fr; gap: 18px; align-items: start; }
.studio-side { position: sticky; top: 86px; }
.stars { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.star { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--ink-3); }
.star img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.star[aria-pressed="true"] { border-color: var(--acc); }
.trendgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.trend { position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--ink-3); }
.trend img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.trend:hover img { transform: scale(1.04); }
.trend span { position: absolute; left: 10px; bottom: 10px; right: 10px; text-align: left; font-weight: 500; font-size: 14px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8); }
.trend[aria-pressed="true"] { border-color: var(--acc); }
@media (max-width: 1000px) { .studio { grid-template-columns: 1fr; } .studio-side { position: static; order: 2; } }

/* ── feed v2 ──────────────────────────────────────── */
.feedmain { padding: 0 !important; position: relative; }
.feedtabs { position: absolute; z-index: 5; top: 14px; left: 50%; transform: translateX(-50%); background: rgba(10, 10, 11, 0.6); backdrop-filter: blur(10px); }
.clip video { border-radius: 0; }
.rail { position: absolute; right: max(16px, calc(50% - 300px)); bottom: 120px; display: grid; gap: 16px; z-index: 3; }
.ra { display: grid; justify-items: center; gap: 3px; border: 0; background: none; cursor: pointer; color: var(--bone); padding: 0; }
.ra svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: rgba(10, 10, 11, 0.55); backdrop-filter: blur(8px); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ra small { font-size: 12px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }
.ra.like.on svg { fill: #ff4d6d; stroke: #ff4d6d; }
.who { gap: 10px; }
.follow { margin-left: 6px; height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(243, 242, 238, 0.6); background: none; color: var(--bone); cursor: pointer; font-size: 13px; }
.follow.on { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.cap { margin: 0; font-size: 15px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); max-width: 34em; }
.buychip { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 6px 6px 6px 8px; border-radius: 999px; background: rgba(10, 10, 11, 0.65); backdrop-filter: blur(10px); border: 1px solid var(--line); }
.buychip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.buychip b { display: block; font-size: 13px; font-weight: 600; }
.buychip small { font-size: 12px; color: rgba(243, 242, 238, 0.8); }
.buychip em { font-style: normal; font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 999px; background: var(--bone); color: var(--ink); }
.sheet { border: 1px solid var(--line); border-radius: 24px; background: var(--ink-2); color: var(--text); padding: 18px; width: min(460px, 100% - 24px); max-height: 75vh; }
.sheet::backdrop { background: rgba(0, 0, 0, 0.55); }
.sheet-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.clist { max-height: 48vh; overflow: auto; display: grid; gap: 4px; }
.cm { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.cm b { font-weight: 500; font-size: 12px; color: var(--acc-2); }
.cm small { grid-column: 2; font-size: 11px; }
.cform { display: flex; gap: 8px; margin-top: 12px; }
.cform .inp { padding: 10px 14px; font-size: 15px; }
.earn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.earn div { padding: 14px; border-radius: 16px; background: var(--ink); border: 1px solid var(--line); }
.earn small { display: block; color: var(--mute); font-size: 12px; margin-bottom: 4px; }
.earn b { font-size: 20px; letter-spacing: -0.02em; font-weight: 600; }
.earn em { display: block; font-style: normal; font-size: 12px; color: var(--mute); margin-top: 2px; }
@media (max-width: 620px) { .earn { grid-template-columns: 1fr; } }

/* ── app fixes: segs never wrap, rows scroll, nothing pushes the page wider ── */
.seg button { white-space: nowrap; }
.page-title .row { max-width: 100%; }
.topbar .search { flex: 1; min-width: 0; }
.topbar .pill { flex: none; }
.who2 > span { min-width: 0; overflow: hidden; }
@media (max-width: 860px) {
  .page-title .row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; padding-bottom: 2px; }
  .page-title .row::-webkit-scrollbar { display: none; }
  .page-title .row > .seg { flex: none; }
  .topbar .pill { height: 36px; padding: 0 12px; font-size: 14px; }
  .topbar .search { height: 36px; }
}
@media (max-width: 520px) {
  .crow { grid-template-columns: 22px minmax(0, 1.8fr) 0.9fr 0.8fr 0.5fr; }
}

.brand .mark { width: 26px; height: 26px; display: block; }
.side-nav .brand .mark { width: 28px; height: 28px; }
