/* MoonBase — night-sky base, one bright field per section, condensed display type. */
:root {
  --ink: #0f0e14;
  --ink-2: #16151d;
  --surface: #1b1a24;
  --surface-2: #23222e;
  --line: #2a2936;
  --line-2: #373646;
  --text: #f4f1fb;
  --muted: #a39fb3;
  --moon: #f6e7a6;       /* moonlight: primary field + CTAs on dark */
  --moon-deep: #e9cf5d;
  --sky: #6d5df5;        /* launch violet: second field */
  --sky-soft: #c9c2ff;
  --mint: #bfe9d2;       /* third field (rooms) */
  --holder: #3ecf8e;
  --creator: #f5b84b;
  --guest: #b3b0c2;
  --green: #3ecf8e;
  --red: #ff6f6f;
  --r: 18px;
  --max: 1200px;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Anton", "Bebas Neue", Impact, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--ink); color: var(--text); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--moon); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0 0 .35em; line-height: 1.1; font-weight: 600; letter-spacing: -.01em; }
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .005em; line-height: .92; }
h1.display { font-size: clamp(56px, 9vw, 128px); }
h2.display { font-size: clamp(44px, 6.4vw, 88px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--moon); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header */
.top { position: sticky; top: 0; z-index: 30; padding: 14px 20px; pointer-events: none; }
.top-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top-inner > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; background: rgba(15,14,20,.8); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; backdrop-filter: blur(10px); }
.brand:hover { text-decoration: none; border-color: var(--line-2); }
.brand .mark { width: 30px; height: 30px; border-radius: 50%; background: var(--moon); position: relative; overflow: hidden; flex: none; }
.brand .mark::after { content: ""; position: absolute; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); left: 11px; top: -3px; }
.nav { display: flex; align-items: center; gap: 6px; background: rgba(15,14,20,.8); border: 1px solid var(--line); border-radius: 999px; padding: 5px; backdrop-filter: blur(10px); }
.nav a { color: var(--text); font-weight: 600; font-size: 13px; padding: 7px 13px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav .btn { padding: 8px 14px; font-size: 13px; }
@media (max-width: 640px) { .nav a:not(.nav-me) { padding: 7px 10px; } .nav .nav-rooms { display: none; } .brand-name { display: none; } .brand { padding-right: 6px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--moon); color: var(--ink); border: 1px solid transparent; border-radius: 999px; padding: 13px 22px; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; letter-spacing: .01em; transition: transform .1s, background .15s; }
.btn:hover { background: #fff2b8; text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn-small { padding: 9px 15px; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-dark { background: var(--ink); color: var(--text); }
.btn-dark:hover { background: #26252f; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f3f0ff; }
.btn-block { width: 100%; }
.btn-danger { background: transparent; color: var(--red); border-color: var(--line-2); }
.arrow::after { content: "↗"; font-size: 13px; }

/* ticker band */
.band { background: var(--moon); color: var(--ink); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; overflow: hidden; white-space: nowrap; padding: 7px 0; }
.band span { display: inline-block; padding-right: 40px; animation: slide 40s linear infinite; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .band span { animation: none; } }

/* hero */
.hero { position: relative; margin: 0 20px; border-radius: 28px; overflow: hidden; background: var(--sky); color: var(--ink); min-height: 640px; display: grid; place-items: center; text-align: center; padding: 110px 20px 130px; }
.hero .sky-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 1; max-width: 900px; }
.hero h1 { color: var(--ink); margin-bottom: 8px; }
.hero .tag { font-family: var(--display); text-transform: uppercase; font-size: clamp(22px, 3vw, 34px); letter-spacing: .3em; margin-bottom: 18px; }
.hero .lead { font-size: clamp(20px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.015em; margin: 0 0 24px; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: rgba(15,14,20,.72); font-weight: 600; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero-note span::before { content: "●"; font-size: 8px; vertical-align: middle; margin-right: 7px; }
@media (max-width: 700px) { .hero { margin: 0 12px; min-height: 560px; padding: 90px 16px 150px; border-radius: 22px; } .hero .sky-art { object-fit: cover; } .hero .tag { letter-spacing: .18em; font-size: 18px; } .hero .lead { font-size: 19px; } }

/* stats strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 20px 0; }
.strip > div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.strip .v { font-family: var(--display); font-size: 40px; line-height: 1; }
.strip .k { color: var(--muted); font-size: 13px; margin-top: 4px; }
@media (max-width: 700px) { .strip { grid-template-columns: 1fr 1fr; margin: 12px 12px 0; } }

/* feature split: big field with art on one side, display copy on the other */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 96px 0; }
.feat.flip .feat-art { order: 2; }
.feat-art { border-radius: 26px; min-height: 420px; display: grid; place-items: center; overflow: hidden; position: relative; }
.feat-art svg { width: 100%; height: 100%; display: block; }
.feat-art.moon { background: var(--moon); }
.feat-art.sky { background: var(--sky); }
.feat-art.mint { background: var(--mint); }
.feat-copy .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.feat-copy h2 { margin-bottom: 18px; }
.feat-copy p { font-size: 18px; max-width: 480px; }
.feat-copy .fine { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.feat-copy ul { padding: 0; margin: 0 0 22px; list-style: none; display: grid; gap: 10px; }
.feat-copy li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 16px; }
.feat-copy li::before { content: "✓"; color: var(--holder); font-weight: 700; }
@media (max-width: 860px) { .feat { grid-template-columns: 1fr; gap: 28px; padding: 64px 0; } .feat.flip .feat-art { order: 0; } .feat-art { min-height: 300px; } }

/* room of the week + trending */
.rotw { margin: 0 20px; border-radius: 26px; background: var(--moon); color: var(--ink); padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.rotw .lbl { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: var(--moon); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.rotw h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(40px, 6vw, 84px); line-height: .95; margin-bottom: 14px; color: var(--ink); }
.rotw .meta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-weight: 600; margin-bottom: 20px; }
.rotw .sym { background: var(--mint); border-radius: 999px; padding: 5px 12px; }
.rotw img { width: 220px; height: 220px; border-radius: 40px; object-fit: cover; background: #fff; border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.rotw .empty-art { width: 220px; height: 220px; }
.rotw .lbl { position: relative; }
@media (max-width: 760px) { .rotw { grid-template-columns: 1fr; padding: 26px; margin: 0 12px; } .rotw img, .rotw .empty-art { width: 140px; height: 140px; } }
.trend-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 56px 0 18px; }
@media (max-width: 700px) { .trend-head { flex-direction: column; gap: 2px; padding-top: 40px; } }
.trend-head h2 { font-size: 26px; margin: 0; }
.trend { display: grid; gap: 10px; }
.trend-row { display: grid; grid-template-columns: 44px 52px 1fr auto 28px; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 18px 12px 14px; color: var(--text); transition: border-color .15s, background .15s; }
.trend-row:hover { border-color: var(--line-2); background: var(--surface-2); text-decoration: none; }
.trend-row .rank { font-family: var(--display); font-size: 34px; color: var(--sky-soft); text-align: center; line-height: 1; }
.trend-row img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--surface-2); display: block; }
.trend-row .name { font-weight: 700; font-size: 17px; }
.trend-row .sub { color: var(--muted); font-size: 13px; }
.trend-row .nums { text-align: right; font-size: 13px; color: var(--muted); white-space: nowrap; }
.trend-row .nums b { color: var(--text); display: block; font-size: 15px; }
.trend-row .go { color: var(--muted); text-align: center; }
@media (max-width: 640px) { .trend-row { grid-template-columns: 32px 44px 1fr 24px; } .trend-row .nums { display: none; } .trend-row .rank { font-size: 26px; } }

/* rooms grid (rooms page, my coins) */
.room-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.room { display: grid; grid-template-columns: 56px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; color: var(--text); transition: border-color .15s, background .15s; }
.room:hover { border-color: var(--line-2); background: var(--surface-2); text-decoration: none; }
.room img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--surface-2); display: block; }
.room .name { font-weight: 700; display: flex; gap: 8px; align-items: baseline; font-size: 16px; }
.room .sym { color: var(--muted); font-weight: 500; }
.room .stats { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.room .stats b { color: var(--text); font-weight: 600; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 6px; vertical-align: middle; }
.empty { color: var(--muted); padding: 32px; border: 1px dashed var(--line-2); border-radius: 18px; text-align: center; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.step .n { font-family: var(--display); font-size: 56px; line-height: 1; color: var(--moon); margin-bottom: 14px; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--moon); font-size: 24px; flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); max-width: 72ch; }

/* CTA band */
.cta { margin: 80px 20px 0; border-radius: 26px; background: var(--sky); color: var(--ink); padding: 56px 40px; text-align: center; position: relative; overflow: hidden; }
.cta h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(40px, 6vw, 80px); line-height: .95; color: var(--ink); }
.cta p { font-size: 18px; font-weight: 600; margin-bottom: 22px; }
@media (max-width: 700px) { .cta { margin: 56px 12px 0; padding: 40px 22px; } }

/* page titles */
.page-title { padding: 72px 0 28px; }
.page-title h1 { font-family: var(--display); text-transform: uppercase; font-size: clamp(44px, 7vw, 96px); line-height: .95; }
.page-title .lead { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0; }
.section { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 20px; }
.section-head h2 { font-size: 26px; margin: 0; }

/* forms */
.form { display: grid; gap: 18px; max-width: 600px; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 14px; }
.field .hint { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
input[type=text], input[type=url], input[type=number], textarea { width: 100%; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 13px; outline: none; transition: border-color .15s; }
input:focus, textarea:focus { border-color: var(--moon); }
textarea { min-height: 100px; resize: vertical; }
select { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 8px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.logo-pick { display: flex; gap: 14px; align-items: center; }
.logo-pick img { width: 76px; height: 76px; border-radius: 18px; background: var(--surface-2); object-fit: cover; border: 1px solid var(--line-2); }
.progress { display: grid; gap: 10px; }
.progress .step-line { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.progress .step-line.done { color: var(--text); }
.progress .step-line.active { color: var(--moon); }
.progress .step-line::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.progress .step-line.done::before { background: currentColor; }
.launch-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; padding-bottom: 80px; }
@media (max-width: 900px) { .launch-grid { grid-template-columns: 1fr; } }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; position: sticky; top: 90px; }
.aside-card h3 { font-size: 16px; }
.aside-card .kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 14px; }
.aside-card .kv .k { color: var(--muted); }
.preview { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 16px; }
.preview img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--surface-2); }
.preview .nm { font-weight: 700; } .preview .sy { color: var(--muted); font-size: 13px; }

/* coin page */
.coin-hero { margin: 0 20px; border-radius: 26px; padding: 34px 36px; display: grid; grid-template-columns: 96px 1fr auto; gap: 22px; align-items: center; color: var(--ink); position: relative; overflow: hidden; }
.coin-hero.moon { background: var(--moon); } .coin-hero.sky { background: var(--sky); } .coin-hero.mint { background: var(--mint); }
.coin-hero img { width: 96px; height: 96px; border-radius: 26px; object-fit: cover; background: #fff; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.coin-hero h1 { font-family: var(--display); text-transform: uppercase; font-size: clamp(34px, 5vw, 64px); line-height: .95; margin: 0 0 8px; color: var(--ink); }
.coin-hero .ca { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; }
.coin-hero .ca a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.coin-hero .ca .pill { background: rgba(15,14,20,.1); border: 0; color: var(--ink); cursor: pointer; }
.coin-hero .you { background: var(--ink); color: var(--text); border-radius: 16px; padding: 12px 16px; font-size: 13.5px; }
.coin-hero .you b { color: var(--moon); }
@media (max-width: 760px) { .coin-hero { grid-template-columns: 64px 1fr; padding: 22px; margin: 0 12px; } .coin-hero > :last-child { grid-column: 1 / -1; } .coin-hero img { width: 64px; height: 64px; border-radius: 18px; } }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.stat .k { color: var(--muted); font-size: 12.5px; }
.stat .v { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.stat .s { color: var(--muted); font-size: 12px; }
.curve { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.curve i { display: block; height: 100%; background: var(--moon); border-radius: 999px; }
.coin-body { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; padding-bottom: 60px; }
@media (max-width: 900px) { .coin-body { grid-template-columns: 1fr; } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 13px; color: var(--muted); }
.pill b { color: var(--text); }
.pill button { background: none; border: 0; color: var(--moon); cursor: pointer; padding: 0; font-weight: 600; }
.trade-box .tabs { display: flex; gap: 4px; margin-bottom: 12px; background: var(--ink-2); padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.trade-box .tabs button { flex: 1; background: transparent; border: 0; border-radius: 999px; padding: 8px; cursor: pointer; font-weight: 700; color: var(--muted); }
.trade-box .tabs button.on { background: var(--moon); color: var(--ink); }
.trade-box .quick { display: flex; gap: 6px; margin: 8px 0; }
.trade-box .quick button { flex: 1; background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 2px; cursor: pointer; font-size: 12px; color: var(--muted); white-space: nowrap; }
.trade-box .quick button:hover { border-color: var(--moon); color: var(--text); }
.trade-box .quote { color: var(--muted); font-size: 13px; margin: 8px 0 12px; min-height: 20px; }

/* room */
.room-wrap { display: grid; grid-template-columns: 1fr 250px; gap: 14px; align-items: start; }
@media (max-width: 900px) { .room-wrap { grid-template-columns: 1fr; } .members { order: 2; } }
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; display: flex; flex-direction: column; height: min(70vh, 720px); }
.chat .pinned { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); background: var(--ink-2); border-radius: 20px 20px 0 0; display: grid; gap: 4px; flex: none; }
.chat .pinned b { color: var(--text); }
.chat .log { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 7px; scroll-behavior: smooth; }
.msg { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; font-size: 14.5px; line-height: 1.45; animation: fade .15s ease; }
.msg .who { font-weight: 700; white-space: nowrap; cursor: pointer; display: inline-flex; gap: 6px; align-items: baseline; color: var(--guest); }
.msg .who.holder { color: var(--holder); }
.msg .who.creator { color: var(--creator); }
.msg .who .badge { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(62,207,142,.14); color: var(--holder); }
.msg .who .badge.creator { background: rgba(245,184,75,.16); color: var(--creator); }
.msg .text { overflow-wrap: anywhere; }
.msg.system { color: var(--muted); grid-template-columns: 1fr; font-size: 13px; }
.msg.trade .text { color: var(--muted); }
.msg.trade.buy .text b { color: var(--green); }
.msg.trade.sell .text b { color: var(--red); }
.msg .t { color: var(--muted); font-size: 11.5px; margin-left: 6px; }
.msg .act { margin-left: 6px; font-size: 12px; color: var(--muted); cursor: pointer; opacity: 0; }
.msg:hover .act { opacity: 1; }
.chat .compose { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat .compose input { flex: 1; border-radius: 999px; }
.chat .notice { padding: 12px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.members { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px; max-height: min(70vh, 720px); overflow-y: auto; }
.members h3 { font-size: 14px; display: flex; justify-content: space-between; }
.members .m { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.members .m:last-child { border-bottom: 0; }
.members .m .w { cursor: pointer; color: var(--holder); font-weight: 600; }
.members .m .w.creator { color: var(--creator); }
.members .m .pct { color: var(--muted); }
.members .m.on .w::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 6px; vertical-align: middle; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.creator-tools { margin-top: 14px; }
.creator-tools details summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.creator-tools .form { margin-top: 12px; }

/* misc */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); padding: 11px 15px; border-radius: 12px; max-width: min(92vw, 520px); z-index: 50; box-shadow: 0 8px 30px rgba(0,0,0,.5); font-size: 14px; }
.toast.err { border-color: var(--red); }
.modal { position: fixed; inset: 0; background: rgba(5,5,10,.7); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 16px; }
.modal-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 22px; width: min(92vw, 420px); }
.wallet-list { display: grid; gap: 8px; margin: 14px 0 16px; }
.wallet-list button { display: flex; align-items: center; gap: 10px; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; cursor: pointer; text-align: left; font-weight: 600; }
.wallet-list button:hover { border-color: var(--moon); }
.wallet-list .none { color: var(--muted); font-size: 14px; }
.foot { margin-top: 48px; padding: 0 20px 24px; }
.foot-inner { max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.foot-links { display: flex; gap: 16px; }
.foot-links a { color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.kv .k { color: var(--muted); }
.ok { color: var(--green); } .bad { color: var(--red); }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.float { animation: drift 4s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }
