:root {
  --sand: #f6f1e7; --paper: #fffdf8; --ink: #1f1b16; --muted: #6f675c; --line: #e6dfd2;
  --sea: #0b6e8f; --sea-2: #0e8fb7; --olive: #6a994e; --sun: #ffd166; --warm: #e07a5f;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--sand); color: var(--ink); font-family: Inter, system-ui, sans-serif; }
h1, h2 { font-family: Fraunces, Georgia, serif; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
a { color: var(--sea); text-decoration: none; }

.top { display: flex; justify-content: space-between; align-items: center; padding: 18px 28px; border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.brand { font-weight: 600; letter-spacing: .14em; font-size: .85rem; }
.brand span { color: var(--muted); letter-spacing: 0; font-weight: 400; }
.net { font-size: .75rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }

main { max-width: 1180px; margin: 0 auto; padding: 24px 28px 80px; }
section { margin: 48px 0; }
.hero { text-align: center; padding: 48px 0 16px; }
.hero-2 { border-top: 1px solid var(--line); padding-top: 64px; }
.lede { max-width: 680px; margin: 16px auto 26px; color: var(--muted); line-height: 1.55; font-size: 1.05rem; }
.meta { min-height: 1.4em; color: var(--muted); font-size: .9rem; margin-top: 14px; }

button.big { font: inherit; font-weight: 600; font-size: 1.05rem; padding: 16px 34px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--paper); box-shadow: 0 8px 24px rgba(31,27,22,.18); transition: transform .12s, box-shadow .12s; }
button.big:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(31,27,22,.22); }
button.big:disabled { opacity: .45; cursor: default; transform: none; }
button.big.alt { background: var(--sea); }

.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.stat { color: var(--muted); font-size: .9rem; }

/* NFT grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.card { color: inherit; display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .15s, box-shadow .15s; animation: pop .35s ease-out; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31,27,22,.1); }
.card img { width: 100%; aspect-ratio: 1; display: block; }
.card .body { padding: 10px 12px 12px; }
.card .name { font-weight: 600; font-size: .95rem; }
.card .sub { color: var(--muted); font-size: .78rem; margin-top: 2px; }
.card .price { margin-top: 6px; font-weight: 600; font-size: .9rem; }
.card .owner { font-size: .72rem; margin-top: 6px; padding: 3px 8px; border-radius: 999px; display: inline-block; background: #eef6ef; color: var(--olive); }
.card.sold .owner { background: #fdeee9; color: var(--warm); }
.card.sold img { filter: saturate(.6); }
.card.flash { box-shadow: 0 0 0 3px var(--sun); }
.grid .empty { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 40px; border: 1px dashed var(--line); border-radius: 14px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* Feed */
.feed { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 8px 0; max-height: 420px; overflow: auto; font-size: .9rem; }
.feed:empty::before { content: "Waiting for the buyers…"; display: block; padding: 20px; color: var(--muted); text-align: center; }
.feed .row { display: grid; grid-template-columns: 70px 120px 1fr auto; gap: 12px; padding: 8px 16px; border-bottom: 1px solid #f1ece2; align-items: baseline; animation: pop .25s ease-out; }
.feed .row:last-child { border-bottom: 0; }
.feed .rnd { color: var(--muted); font-size: .75rem; }
.feed .who { font-weight: 600; }
.feed .what { color: var(--ink); }
.feed .tag { font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: #eee9df; color: var(--muted); }
.feed .row.buy .tag { background: #e3f2f8; color: var(--sea); }
.feed .row.bought .tag { background: #e6f4e8; color: var(--olive); font-weight: 600; }
.feed .row.fail .tag { background: #fdeee9; color: var(--warm); }
.feed .row.round { grid-template-columns: 1fr; background: #f3eee3; font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.feed .why { font-family: Fraunces, Georgia, serif; font-size: 1rem; line-height: 1.35; }
.feed .fact { color: var(--muted); font-size: .78rem; margin-top: 2px; }
.feed .brain { font-size: .7rem; color: var(--muted); margin-left: 6px; }

/* Wallets */
.wallets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.wallet { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px; transition: box-shadow .2s; }
.wallet.flash { box-shadow: 0 0 0 3px var(--sun); }
.wallet .name { font-weight: 600; display: flex; justify-content: space-between; }
.wallet .voice { color: var(--muted); font-size: .78rem; margin-top: 2px; min-height: 2.4em; }
.wallet .bal { margin-top: 8px; font-size: .85rem; }
.wallet .addr { font-family: ui-monospace, Menlo, monospace; font-size: .7rem; color: var(--muted); margin-top: 4px; }
.wallet .holdings { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; min-height: 44px; }
.wallet .holdings img { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); }
.wallet .holdings .none { color: var(--muted); font-size: .78rem; align-self: center; }
.wallet .count { font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: #eee9df; color: var(--muted); }
.wallet.has .count { background: #e6f4e8; color: var(--olive); font-weight: 600; }

.issuer-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; gap: 32px; flex-wrap: wrap; font-size: .9rem; }
.issuer-card .k { color: var(--muted); font-size: .75rem; }
.issuer-card .v { font-weight: 600; font-size: 1.1rem; }
.issuer-card .addr { font-family: ui-monospace, Menlo, monospace; font-size: .75rem; }

footer { text-align: center; color: var(--muted); font-size: .78rem; padding: 24px; border-top: 1px solid var(--line); }
footer a { margin: 0 8px; }

/* Verified transactions */
.sales { display: flex; flex-direction: column; gap: 10px; }
.sales .empty { color: var(--muted); text-align: center; padding: 28px; border: 1px dashed var(--line); border-radius: 14px; font-size: .9rem; }
.sale { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 14px; animation: pop .3s ease-out; transition: box-shadow .2s; }
.sale.flash { box-shadow: 0 0 0 3px var(--sun); }
.sale img { width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--line); flex: none; }
.sale .main { flex: 1; min-width: 0; }
.sale .line1 { font-size: .95rem; }
.sale .line1 .amt { font-weight: 600; margin-left: 8px; }
.sale .line2 { color: var(--muted); font-size: .76rem; margin-top: 3px; font-family: ui-monospace, Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sale .view { flex: none; font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--sand); }
.sale .view:hover { background: #efe8da; }
