/* Lobby — night base, one bright field per section, condensed display type, lobby gold. */
:root {
  --ink: #0a0816;
  --ink-2: #120f24;
  --surface: rgba(255,255,255,.045);
  --surface-solid: #17142c;
  --surface-2: rgba(255,255,255,.085);
  --line: rgba(255,255,255,.09);
  --line-2: rgba(255,255,255,.17);
  --text: #f7f4ff;
  --muted: #aca6c8;
  --gold: #ffc94d;       /* lobby gold: CTAs, the arch, coins */
  --gold-soft: #ffe08a;
  --emerald: #22d39a;
  --violet: #8b5cf6;
  --holder: #34d399;
  --creator: #ffc94d;
  --guest: #bbb6d2;
  --green: #34d399;
  --red: #ff6f7d;
  --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; position: relative; isolation: isolate; overflow-x: hidden; }
/* the night behind every page: slow aurora + fine grain */
body::before { content: ""; position: fixed; inset: -20%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38% 34% at 18% 12%, rgba(139,92,246,.30), transparent 70%),
    radial-gradient(34% 30% at 86% 30%, rgba(34,211,154,.18), transparent 70%),
    radial-gradient(40% 36% at 60% 96%, rgba(255,201,77,.13), transparent 70%),
    radial-gradient(30% 28% at 6% 78%, rgba(94,234,212,.10), transparent 70%);
  animation: aurora 28s ease-in-out infinite alternate; }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes aurora { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(3%,-2%,0) scale(1.06); } 100% { transform: translate3d(-3%,2%,0) scale(1.02); } }
main { flex: 1; }
a { color: var(--gold); 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(64px, 11vw, 160px); }
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(--gold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.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(12,10,26,.72); 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: #1a1533; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; }
.nav { display: flex; align-items: center; gap: 6px; background: rgba(12,10,26,.72); 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; }
.nav .nav-x { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; }
#connect.signed { background: var(--surface-2); color: var(--text); }
@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: linear-gradient(135deg, #ffe39a, #ffb627); box-shadow: 0 10px 30px -10px rgba(255,182,39,.7), inset 0 1px 0 rgba(255,255,255,.5); color: #1d1405; 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: linear-gradient(135deg, #fff0bf, #ffc24a); text-decoration: none; transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(255,182,39,.85), inset 0 1px 0 rgba(255,255,255,.6); }
.btn:active { transform: none; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn-small { padding: 9px 15px; font-size: 13px; }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--line-2); box-shadow: none; backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.1); box-shadow: none; }
.btn-dark { background: var(--ink); color: var(--text); }
.btn-dark:hover { background: #222724; }
.btn-block { width: 100%; }
.btn-sell { background: linear-gradient(135deg, #ff9aa4, #ff5d6f); color: #2b0810; box-shadow: 0 10px 30px -10px rgba(255,93,111,.7); }
.btn-sell:hover { background: linear-gradient(135deg, #ffb3ba, #ff7383); }
.arrow::after { content: "↗"; font-size: 13px; }

/* hero */
.hero { position: relative; margin: 0 20px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); color: var(--text); min-height: 700px; display: grid; place-items: center; text-align: center; padding: 110px 20px 90px;
  background: radial-gradient(60% 60% at 20% 0%, rgba(139,92,246,.45), transparent 70%), radial-gradient(55% 55% at 90% 100%, rgba(34,211,154,.32), transparent 70%), radial-gradient(40% 40% at 50% 55%, rgba(255,201,77,.14), transparent 70%), linear-gradient(180deg, #120d2a, #0a0816); }
.hero .hero-3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .hero-arch { position: absolute; left: 50%; top: 50%; width: min(760px, 92vw); transform: translate(-50%, -54%); pointer-events: none; opacity: .9; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 60% at 50% 50%, transparent 55%, rgba(10,8,22,.55)); }
.hero-inner { position: relative; z-index: 2; max-width: 900px; }
.hero h1 { color: #fff; margin-bottom: 8px; text-shadow: 0 0 60px rgba(255,201,77,.35), 0 0 120px rgba(139,92,246,.35); }
.hero .tag { font-family: var(--display); text-transform: uppercase; font-size: clamp(22px, 3vw, 34px); letter-spacing: .3em; margin-bottom: 18px; color: var(--gold); }
.hero .lead { font-size: clamp(20px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.015em; margin: 0 auto 24px; color: var(--text); max-width: 760px; text-shadow: 0 2px 24px rgba(10,8,22,.95), 0 0 2px rgba(10,8,22,.8); }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); 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; color: var(--gold); }
@media (max-width: 700px) { .hero { margin: 0 12px; min-height: 560px; padding: 90px 16px 70px; border-radius: 22px; } .hero .tag { letter-spacing: .18em; font-size: 18px; } .hero .lead { font-size: 19px; } }

/* contract address */
.ca-box { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 26px; padding: 10px 10px 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(18,15,36,.75); backdrop-filter: blur(12px); }
.ca-box .ca-label { font-size: 13px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.ca-box .ca-text { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
@media (max-width: 700px) { .ca-box { border-radius: 18px; } .ca-box .ca-text { font-size: 12px; } }

/* 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; backdrop-filter: blur(10px); position: relative; overflow: hidden; }
.strip > div::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--violet), var(--emerald), var(--gold)); opacity: .8; }
.strip .v { font-family: var(--display); font-size: 44px; line-height: 1; background: linear-gradient(180deg, #fff, #d9d2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.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 { box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
.feat-art.emerald { background: radial-gradient(80% 70% at 25% 15%, #5ff0c0, transparent 60%), linear-gradient(135deg, #22d39a, #0b8c66); box-shadow: 0 40px 90px -40px rgba(34,211,154,.55); }
.feat-art.violet { background: radial-gradient(80% 70% at 25% 15%, #b9a2ff, transparent 60%), linear-gradient(135deg, #8b5cf6, #4c2bc4); box-shadow: 0 40px 90px -40px rgba(139,92,246,.6); }
.feat-art.night { background: radial-gradient(70% 70% at 50% 50%, rgba(139,92,246,.25), transparent 70%), #120f24; border: 1px solid var(--line); }
.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: radial-gradient(60% 120% at 100% 50%, rgba(255,201,77,.18), transparent 60%), radial-gradient(50% 100% at 0% 0%, rgba(139,92,246,.22), transparent 60%), rgba(255,255,255,.035); border: 1px solid var(--line); color: var(--text); 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: linear-gradient(135deg, #ffe39a, #ffb627); color: #1d1405; 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(--text); overflow-wrap: anywhere; }
.rotw .meta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-weight: 600; margin-bottom: 20px; }
.rotw .sym { background: linear-gradient(135deg, #ffe39a, #ffb627); color: #1d1405; border-radius: 999px; padding: 5px 12px; }
.rotw img { width: 220px; height: 220px; border-radius: 40px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 0 60px -10px rgba(255,201,77,.35); }
.rotw .empty-art { width: 220px; height: 220px; }
@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(--gold); 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; min-width: 0; }
.room .name span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room .sym { color: var(--gold); font-weight: 600; font-size: 14px; }
.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; }
.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(--gold); 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(--gold); 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: radial-gradient(60% 120% at 50% 120%, rgba(255,201,77,.25), transparent 60%), radial-gradient(50% 100% at 0% 0%, rgba(139,92,246,.3), transparent 60%), radial-gradient(50% 100% at 100% 0%, rgba(34,211,154,.2), transparent 60%), #110d24; border: 1px solid var(--line); color: var(--text); 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(--text); }
.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; font-weight: 400; }
.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; }
.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; }
.opt { color: var(--muted); font-weight: 500; }
input[type=text], input:not([type]), textarea, select { 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, select:focus { border-color: var(--gold); }
textarea { min-height: 100px; resize: vertical; }
select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 700px) { .grid-2, .grid-3 { 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(--gold); }
.progress .step-line::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.progress .step-line.done::before { background: var(--holder); border-color: var(--holder); }
.result.err { color: var(--red); }
.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); }
.aside-card .kv .tot { font-weight: 700; }
.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(--gold); font-size: 13px; font-weight: 600; }
.amount { display: flex; align-items: center; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 12px; }
.amount input { border: 0; background: transparent; font-size: 20px; font-weight: 700; }
.amount span { padding-right: 14px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.amount:focus-within { border-color: var(--gold); }
.chips { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.chips button { background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.chips button:hover { border-color: var(--gold); color: var(--text); }

/* 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; position: relative; overflow: hidden; background: radial-gradient(60% 140% at 0% 0%, rgba(139,92,246,.35), transparent 60%), radial-gradient(50% 120% at 100% 100%, rgba(34,211,154,.2), transparent 60%), #120e26; border: 1px solid var(--line); color: var(--text); }
.coin-hero::before { content: ""; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(255,201,77,.16), transparent 65%); pointer-events: none; }
.coin-hero > * { position: relative; }
.coin-hero img { width: 96px; height: 96px; border-radius: 26px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 0 40px -8px rgba(255,201,77,.35); }
.coin-hero h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 5vw, 64px); line-height: .95; margin: 0 0 10px; color: var(--text); overflow-wrap: anywhere; }
.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(--gold); text-decoration: underline; text-underline-offset: 3px; }
.coin-hero .you { background: var(--surface); border: 1px solid var(--line-2); color: var(--text); border-radius: 16px; padding: 12px 16px; font-size: 13.5px; }
.coin-hero .you:empty { display: none; }
.coin-hero .you b { color: var(--gold); }
@media (max-width: 760px) { .coin-hero { grid-template-columns: 64px 1fr; padding: 22px; margin: 0 12px; } .coin-hero > .you { grid-column: 1 / -1; } .coin-hero img { width: 64px; height: 64px; border-radius: 18px; } }
.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); cursor: pointer; }
.pill.sym { color: #1d1405; background: linear-gradient(135deg, #ffe39a, #ffb627); border-color: transparent; font-weight: 700; cursor: default; }
button.pill:hover { border-color: var(--gold); color: var(--text); }
.stats-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 14px 0 18px; }
@media (max-width: 1000px) { .stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.stat .k { color: var(--muted); font-size: 12.5px; }
.stat .v { font-weight: 700; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .s { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.curve { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.curve i { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.coin-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; padding-bottom: 60px; }
.coin-side { display: grid; gap: 14px; position: sticky; top: 84px; }
@media (max-width: 900px) { .coin-body { grid-template-columns: 1fr; } .coin-side { position: static; } }
.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[data-side=buy] { background: linear-gradient(135deg, #6ef0c0, #22c58f); color: #052116; }
.trade-box .tabs button.on[data-side=sell] { background: var(--red); color: #2b0808; }
.trade-box .chips button { flex: 1; }
.trade-box .quote { color: var(--text); font-size: 13.5px; margin: 10px 0 12px; min-height: 20px; }
.trade-box .quote.err { color: var(--red); }
.slip { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.slip select { width: auto; padding: 6px 30px 6px 10px; border-radius: 10px; }
.trades-card h3 { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.trades { max-height: 420px; overflow-y: auto; font-size: 13.5px; }
.trade-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 30px; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.trade-row:last-child { border-bottom: 0; }
.trade-row:hover { text-decoration: none; background: rgba(255,255,255,.02); }
.trade-row .side { font-weight: 700; }
.trade-row .side.buy { color: var(--green); } .trade-row .side.sell { color: var(--red); }
.trade-row .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--guest); font-weight: 600; }
.trade-row .who.holder { color: var(--holder); } .trade-row .who.creator { color: var(--creator); }
.trade-row .amt { font-weight: 700; }
.trade-row .age { color: var(--muted); font-size: 12px; text-align: right; }
.trade-row.fresh { animation: fresh 1.8s ease-out; }
@keyframes fresh { from { background: rgba(255,201,77,.16); } to { background: transparent; } }

/* chart */
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 12px 14px 8px; margin-bottom: 14px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.chart-price { font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.chart-chg { font-size: 13px; font-weight: 600; margin-left: 6px; }
.chart-chg.up { color: var(--green); } .chart-chg.down { color: var(--red); }
.chart-res { display: flex; gap: 4px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.chart-res button { background: transparent; border: 0; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.chart-res button.on { background: linear-gradient(135deg, #ffe39a, #ffb627); color: #1d1405; }
#chart { height: 300px; width: 100%; }
.chart-empty { padding: 8px 2px 4px; }
.chart-note { font-size: 11.5px; color: var(--muted); margin: 4px 2px 0; }
.chart-note a { color: var(--muted); text-decoration: underline; }
@media (max-width: 700px) { #chart { height: 220px; } }

/* 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, 680px); min-height: 440px; }
.chat-head { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-head h3 { margin: 0; font-size: 15px; }
.chat .pinned { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); background: var(--ink-2); display: grid; gap: 4px; flex: none; }
.chat .pinned b { color: var(--gold); margin-right: 4px; }
.chat .log { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 7px; }
.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); }
.badge { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(62,207,142,.14); color: var(--holder); }
.badge.creator { background: rgba(255,201,77,.16); color: var(--creator); }
.msg .text { overflow-wrap: anywhere; }
.msg.system { color: var(--muted); grid-template-columns: 1fr; font-size: 13px; text-align: center; padding: 4px 0; }
.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; text-decoration: underline; }
.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, 680px); overflow-y: auto; }
.members h3 { font-size: 15px; 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; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.members .m .w.creator { color: var(--creator); }
.members .m .pct { color: var(--muted); }
.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-solid); 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,6,5,.72); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 16px; }
.modal-card { background: var(--surface-solid); border: 1px solid var(--line-2); border-radius: 20px; padding: 22px; width: min(92vw, 420px); }
.modal-card h2 { font-size: 20px; }
.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(--gold); }
.wallet-list img { width: 26px; height: 26px; border-radius: 7px; }
.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); }
.big-num { font-family: var(--display); font-size: 44px; line-height: 1; margin: 8px 0; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes glow { from { opacity: .5; } to { opacity: .85; } }
.float { animation: drift 4s ease-in-out infinite alternate; }
.pulse { animation: glow 3.5s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .float, .pulse, .msg, .trade-row.fresh { animation: none; } }

/* sections ease in as they scroll into view */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js-reveal [data-reveal].in { opacity: 1; transform: none; }
.hero-inner > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-inner > :nth-child(2) { animation-delay: .08s; } .hero-inner > :nth-child(3) { animation-delay: .16s; } .hero-inner > :nth-child(4) { animation-delay: .24s; } .hero-inner > :nth-child(5) { animation-delay: .32s; } .hero-inner > :nth-child(6) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body::before, .hero-inner > * { animation: none; } .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; } }
