/* =====================================================================
   Elysium Snowball — design system
   Layout: one top bar of tabs over a painted Elysian landscape; the page
   below is ink-dark and editorial, ruled with hairlines.
   Single deliberate dark look (no light theme): night ink, bone-cream
   type, sage-teal sky, glacier ice for the snowball, Elysian gold.
   ===================================================================== */
:root {
  --bg: #08090a;
  --bg-2: #0f1112;
  --panel: rgba(17, 19, 20, 0.82);
  --panel-2: rgba(28, 31, 32, 0.9);
  --panel-solid: #141617;
  --line: rgba(237, 233, 223, 0.1);
  --line-2: rgba(237, 233, 223, 0.2);
  --text: #eeeae0;
  --text-2: #cbc8be;
  --muted: #92978f;
  --dim: #63685f;
  --ice: #a9e4ee;
  --ice-2: #7ccfdf;
  --violet: #b9a7e8;
  --indigo: #7c86c9;
  --gold: #e5cc92;
  --mint: #7fd6b0;
  --rose: #ee8a8a;
  --amber: #e8b85c;
  --sage: #8fae98;
  --grad-brand: linear-gradient(135deg, #eeeae0, #a9e4ee);
  --grad-btn: linear-gradient(180deg, #f3efe5, #e2dccd);
  --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.8);
  --glow: 0 0 0 1px rgba(169, 228, 238, 0.28);
  --radius: 8px;
  --radius-sm: 6px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Instrument Serif', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --nav-h: 148px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img, svg, canvas { display: block; }
::selection { background: rgba(169, 228, 238, 0.3); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }

/* ---------- top navigation ---------- */
.topnav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(8, 9, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topnav-row {
  display: flex; align-items: center; gap: 28px;
  height: 64px; padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 30px; height: 30px; }
.brand-word { font-family: var(--display); font-size: 25px; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.brand-word em { font-style: italic; color: var(--ice); }
.tabs { display: flex; align-items: stretch; gap: 26px; height: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  display: flex; align-items: center; white-space: nowrap; font-size: 15px; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.15s, border-color 0.15s;
}
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-bottom-color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
.icon-link { width: 38px; height: 38px; display: grid; place-items: center; color: var(--text-2); border-radius: var(--radius-sm); }
.icon-link:hover { color: var(--text); background: rgba(237, 233, 223, 0.06); }
.icon-link svg { width: 18px; height: 18px; }

/* ticker: coins and drops */
.ticker { height: 40px; overflow: hidden; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.ticker-track { display: flex; gap: 40px; white-space: nowrap; animation: marquee 70s linear infinite; padding-left: 20px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { font-size: 14px; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.ticker-item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ice); }
.ticker-item .mono { font-family: var(--mono); color: var(--muted); font-weight: 400; font-size: 13px; }
.ticker-item .up { color: var(--mint); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

.substrip {
  height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px));
  font-size: 13.5px; color: var(--muted); background: rgba(237, 233, 223, 0.025);
}
.substrip b { color: var(--text); font-weight: 600; margin-right: 10px; }
.substrip .live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); margin-right: 10px; vertical-align: 1px; animation: pulse 2s infinite; }
.substrip .sub-left { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.substrip .sub-right { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
@keyframes pulse { 50% { opacity: 0.4; } }
@keyframes bob { 50% { transform: translateY(-4px); } }

/* ---------- painted landscape ---------- */
.scene { position: absolute; left: 0; right: 0; top: var(--nav-h); height: 300px; z-index: 0; pointer-events: none; overflow: hidden; transition: height 0.5s ease; }
body.route-home .scene { height: min(900px, 112vh); }
.scene-art { position: absolute; inset: 0; background-size: cover; background-position: center 30%; opacity: 0; transition: opacity 1.2s ease; }
.scene-art.ready { opacity: 1; }
.scene::before { /* scanlines */
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
.scene::after { /* fade into the page */
  content: ''; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(90deg, rgba(8, 9, 10, 0.5) 0%, rgba(8, 9, 10, 0.12) 50%, rgba(8, 9, 10, 0) 70%),
    linear-gradient(180deg, rgba(8, 9, 10, 0.12) 0%, rgba(8, 9, 10, 0.02) 40%, rgba(8, 9, 10, 0.35) 78%, var(--bg) 100%);
}
body:not(.route-home) .scene::after { background: linear-gradient(180deg, rgba(8, 9, 10, 0.35), rgba(8, 9, 10, 0.75) 60%, var(--bg)); }

#view {
  position: relative; z-index: 1; max-width: 1320px; width: 100%; margin: 0 auto;
  padding-block: 56px 80px;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
}
body.route-home #view { padding-top: 0; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(139, 228, 255, 0.4); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad-btn); color: #06102a; border-color: transparent; box-shadow: 0 10px 30px -10px rgba(139, 228, 255, 0.6); }
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(139, 228, 255, 0.8); }
.btn-gold { background: linear-gradient(135deg, #ffe9b3, #f3d58b 50%, #e0a85a); color: #2a1a03; border-color: transparent; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 12px; }
.btn-block { width: 100%; }
.icon-btn { width: 40px; height: 40px; padding: 0; border-radius: 12px; }
.icon-btn svg { width: 18px; height: 18px; }
.ca-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.ca-chip .mono { font-family: var(--mono); color: var(--ice); }
.wallet-btn.connected { background: rgba(94, 234, 212, 0.1); border-color: rgba(94, 234, 212, 0.35); }
.wallet-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip.active { background: rgba(139, 228, 255, 0.12); border-color: rgba(139, 228, 255, 0.4); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.distributing { color: var(--mint); background: rgba(94, 234, 212, 0.1); }
.pill.awaiting { color: var(--amber); background: rgba(251, 191, 36, 0.1); }
.pill.paused { color: var(--muted); background: rgba(133, 146, 189, 0.12); }
.pill.graduated { color: var(--gold); background: rgba(243, 213, 139, 0.1); }
.badge-demo {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); background: rgba(243, 213, 139, 0.08); border: 1px dashed rgba(243, 213, 139, 0.35);
}

/* ---------- typography ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.03em; }
.eyebrow .num { font-family: var(--mono); color: var(--ice); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; }
.h-hero { font-size: clamp(40px, 6vw, 76px); line-height: 1; font-weight: 800; }
.h-page { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.04; font-weight: 800; }
.h-sec { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; font-weight: 700; }
.grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 17px; color: var(--text-2); max-width: 620px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.small { font-size: 12.5px; }

/* ---------- panels ---------- */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(12px); box-shadow: var(--shadow);
}
.card-pad { padding: 22px; }
.section { margin-top: 72px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head .eyebrow { margin-bottom: 8px; }
.link-arrow { color: var(--ice); font-weight: 700; font-size: 14px; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- home hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; min-height: 560px; padding-top: 12px; }
.hero-copy .eyebrow { margin-bottom: 18px; }
.hero-copy .lead { margin: 22px 0 10px; }
.hero-tagline { font-family: var(--mono); font-size: 12.5px; color: var(--ice); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 26px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; font-size: 13px; color: var(--muted); }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { width: 15px; height: 15px; color: var(--mint); }
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-height: 560px; width: 100%; }
.hero-visual canvas { width: 100%; height: 100%; }
.hero-counter {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%);
  text-align: center; padding: 14px 22px; border-radius: 18px; background: rgba(8, 12, 30, 0.7);
  border: 1px solid var(--line-2); backdrop-filter: blur(10px); min-width: 250px;
}
.hero-counter .big { font-family: var(--display); font-size: 34px; font-weight: 800; }
.hero-counter .small { color: var(--muted); }
.hero-counter .plus { color: var(--mint); font-family: var(--mono); font-weight: 700; font-size: 13px; }
.illus-note { position: absolute; top: 4%; right: 4%; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.step { padding: 20px; position: relative; overflow: hidden; }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--ice); }
.step h3 { font-size: 17px; margin: 10px 0 6px; font-family: var(--display); }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; }
.step::after { content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 228, 255, 0.12), transparent 70%); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
.stat { padding: 20px 22px; }
.stat .label { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.stat .value { font-family: var(--display); font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; margin-top: 6px; }
.stat .value.ice { color: var(--ice); }
.stat .delta { font-family: var(--mono); font-size: 12px; color: var(--mint); margin-top: 4px; }

/* ---------- compounding ---------- */
.compound { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.compound p { color: var(--text-2); }
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 14px; }
.phase { padding: 16px; text-align: center; }
.phase .ball { margin: 0 auto 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #bff1ff 40%, #7c9cff 100%); box-shadow: 0 6px 20px rgba(139, 228, 255, 0.4); }
.phase b { display: block; font-size: 14px; }
.phase small { color: var(--muted); font-size: 12.5px; }
.honest { font-size: 13px; color: var(--muted); border-left: 2px solid var(--gold); padding: 4px 0 4px 12px; }
.loop-wrap { position: relative; }
.loop-wrap svg { width: 100%; height: auto; }

/* ---------- feed ---------- */
.feed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feed { padding: 6px; max-height: 520px; overflow: hidden; position: relative; }
.feed::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, rgba(10, 16, 36, 0.95)); pointer-events: none; border-radius: 0 0 var(--radius) var(--radius); }
.feed-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; animation: slideIn 0.45s ease; }
.feed-row + .feed-row { border-top: 1px solid var(--line); }
.feed-row .tag { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 6px; text-align: center; }
.tag.drop { color: var(--ice); background: rgba(139, 228, 255, 0.1); }
.tag.fees { color: var(--gold); background: rgba(243, 213, 139, 0.1); }
.tag.round { color: var(--violet); background: rgba(167, 139, 250, 0.12); }
.tag.burn { color: var(--rose); background: rgba(251, 113, 133, 0.1); }
.tag.launch { color: var(--mint); background: rgba(94, 234, 212, 0.1); }
.feed-row .what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-row .what a { color: var(--ice); font-weight: 700; }
.feed-row .what .mono { color: var(--text-2); }
.feed-row .when { font-family: var(--mono); font-size: 12px; color: var(--muted); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); background: rgba(139, 228, 255, 0.08); } to { opacity: 1; transform: none; } }

/* ---------- coin cards ---------- */
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.coin-card { padding: 18px; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; display: block; position: relative; overflow: hidden; }
.coin-card:hover { transform: translateY(-3px); border-color: rgba(139, 228, 255, 0.35); box-shadow: var(--glow); }
.coin-head { display: flex; align-items: center; gap: 12px; }
.coin-head .names { min-width: 0; flex: 1; }
.coin-head .names b { display: block; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-head .names small { color: var(--ice); font-family: var(--mono); font-size: 12.5px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 17px; color: #fff; box-shadow: inset 0 -6px 14px rgba(0, 0, 0, 0.25), 0 6px 18px rgba(0, 0, 0, 0.35); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 72px; height: 72px; font-size: 26px; }
.coin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; margin-top: 16px; }
.coin-stats div small { display: block; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.coin-stats div b { font-family: var(--mono); font-size: 13.5px; font-weight: 600; }
.coin-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.coin-foot .growth { font-family: var(--mono); font-size: 12px; color: var(--mint); font-weight: 600; }
.spark { width: 110px; height: 30px; }
.retention-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); margin-top: 12px; overflow: hidden; }
.retention-bar i { display: block; height: 100%; background: var(--grad-btn); border-radius: 4px; }

/* ---------- lookup ---------- */
.lookup { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 32px; align-items: center; overflow: hidden; position: relative; }
.input-row { display: flex; gap: 10px; margin-top: 18px; }
.input, .textarea, .select {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(5, 8, 19, 0.6); color: var(--text); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, .textarea:focus, .select:focus { border-color: rgba(139, 228, 255, 0.55); box-shadow: 0 0 0 4px rgba(139, 228, 255, 0.1); }
.input.mono { font-family: var(--mono); font-size: 13.5px; }
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238592bd' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
.select option { background: var(--panel-solid); }
.lookup-result { min-height: 200px; border-radius: 16px; border: 1px dashed var(--line-2); display: grid; place-items: center; padding: 22px; font-family: var(--mono); font-size: 13px; color: var(--muted); text-align: center; }
.lookup-result.has { place-items: stretch; text-align: left; border-style: solid; background: rgba(5, 8, 19, 0.4); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 13px; }
.kv span { color: var(--muted); }
.kv b { font-family: var(--mono); font-weight: 600; text-align: right; }
.ok { color: var(--mint); } .warn { color: var(--amber); } .bad { color: var(--rose); }

/* ---------- forms (launch / register) ---------- */
.page-head { padding: 8px 0 26px; }
.page-head .eyebrow { margin-bottom: 12px; }
.page-head .lead { margin-top: 14px; }
.launch-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: start; }
.form { padding: 26px; display: grid; gap: 18px; }
.field label { display: block; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.field .hint { font-size: 12px; color: var(--dim); margin-top: 6px; }
.field .err { font-size: 12px; color: var(--rose); margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.field.invalid .input, .field.invalid .textarea { border-color: rgba(251, 113, 133, 0.6); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upload { display: flex; gap: 16px; align-items: center; }
.upload-drop {
  width: 112px; height: 112px; border-radius: 22px; border: 1.5px dashed var(--line-2); display: grid; place-items: center;
  text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); cursor: pointer; overflow: hidden; flex: none;
  background: rgba(5, 8, 19, 0.5); transition: border-color 0.2s;
}
.upload-drop:hover { border-color: var(--ice); color: var(--ice); }
.upload-drop img { width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cost { border-radius: 14px; background: rgba(5, 8, 19, 0.5); border: 1px solid var(--line); padding: 14px 16px; display: grid; gap: 8px; font-size: 13.5px; }
.cost div { display: flex; justify-content: space-between; gap: 12px; }
.cost span { color: var(--muted); }
.cost b { font-family: var(--mono); font-weight: 600; }
.cost .total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; }
.cost .total b { color: var(--ice); font-size: 15px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ice); flex: none; }
.socials { display: none; gap: 10px; }
.socials.open { display: grid; }
.side-stack { display: grid; gap: 18px; position: sticky; top: 100px; }
.preview-card { padding: 20px; }
.preview-card .ph { color: var(--dim); }
.curve { margin-top: 16px; }
.curve svg { width: 100%; height: 120px; }
.what-you-get { padding: 22px; }
.what-you-get h3 { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-family: var(--font); margin-bottom: 14px; }
.wyg { display: grid; gap: 14px; }
.wyg div { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.wyg div b { color: var(--text); }
.wyg .ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(139, 228, 255, 0.1); color: var(--ice); }
.wyg .ico svg { width: 15px; height: 15px; }
.callout { padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.06); font-size: 13px; color: var(--text-2); }
.callout b { color: var(--amber); display: block; margin-bottom: 4px; }
.callout.info { border-color: rgba(139, 228, 255, 0.3); background: rgba(139, 228, 255, 0.05); }
.callout.info b { color: var(--ice); }
.split-bar { display: flex; height: 10px; border-radius: 10px; overflow: hidden; margin: 10px 0 6px; }
.split-bar i:first-child { background: var(--grad-btn); }
.split-bar i:last-child { background: linear-gradient(90deg, #fb7185, #f3d58b); }
.split-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

.register-wrap { max-width: 860px; }
.reg-card { padding: 28px; }
.reg-steps { display: grid; gap: 10px; margin-top: 20px; }
.reg-step { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(5, 8, 19, 0.45); border: 1px solid var(--line); font-size: 13.5px; }
.reg-step .st { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-size: 12px; font-family: var(--mono); }
.reg-step.done .st { background: rgba(94, 234, 212, 0.15); border-color: var(--mint); color: var(--mint); }
.reg-step.run .st { border-color: var(--ice); color: var(--ice); animation: pulse 1s infinite; }
.reg-step.fail .st { background: rgba(251, 113, 133, 0.12); border-color: var(--rose); color: var(--rose); }
.reg-step small { color: var(--muted); font-family: var(--mono); }
.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.howto .card { padding: 18px; }
.howto .n { font-family: var(--mono); font-size: 12px; color: var(--ice); }
.howto h4 { margin: 8px 0 6px; font-size: 15px; }
.howto p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- explore / filters ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.toolbar .search { flex: 1; min-width: 220px; position: relative; }
.toolbar .search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.toolbar .search .input { padding-left: 40px; }
.toolbar .select { width: auto; min-width: 220px; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); }

/* ---------- network ---------- */
.net-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.net-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; }
.net-ball { padding: 18px; position: relative; }
.net-ball-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.net-ball-head b { font-size: 14px; }
.net-canvas-wrap { position: relative; aspect-ratio: 1 / 1; max-height: 620px; margin: 0 auto; }
.net-canvas-wrap canvas { width: 100%; height: 100%; cursor: crosshair; }
.net-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.net-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.net-tip { position: absolute; pointer-events: none; padding: 8px 12px; border-radius: 10px; background: rgba(8, 12, 30, 0.95); border: 1px solid var(--line-2); font-size: 12px; font-family: var(--mono); white-space: nowrap; opacity: 0; transition: opacity 0.15s; z-index: 5; }
.recip { padding: 6px; max-height: 720px; overflow: hidden; }
.recip h4 { margin: 12px 14px 8px; font-size: 11.5px; letter-spacing: 0.1em; color: var(--muted); }
.recip-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 9px 14px; font-size: 13px; align-items: center; animation: slideIn 0.45s ease; }
.recip-row + .recip-row { border-top: 1px solid var(--line); }
.recip-row .mono { color: var(--text-2); }
.recip-row a { color: var(--ice); font-weight: 700; }
.recip-row .when { color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.coverage-note { font-size: 12.5px; color: var(--muted); max-width: 860px; }

/* ---------- leaderboard ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; margin-bottom: 22px; }
.podium .card { padding: 22px; text-align: center; position: relative; overflow: hidden; }
.podium .card .avatar { margin: 0 auto 10px; }
.podium .place { font-family: var(--display); font-size: 13px; font-weight: 800; letter-spacing: 0.1em; }
.podium .p1 { padding-top: 34px; border-color: rgba(243, 213, 139, 0.4); box-shadow: 0 0 0 1px rgba(243, 213, 139, 0.15), 0 20px 60px -20px rgba(243, 213, 139, 0.35); }
.podium .p1 .place { color: var(--gold); }
.podium .p2 .place { color: #d7e3ff; }
.podium .p3 .place { color: #f0b48a; }
.podium .big { font-family: var(--display); font-size: 26px; font-weight: 800; margin-top: 6px; }
.table-wrap { overflow-x: auto; }
table.lb { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 860px; }
table.lb th { text-align: left; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 700; cursor: pointer; user-select: none; white-space: nowrap; }
table.lb th.num, table.lb td.num { text-align: right; }
table.lb th.sorted { color: var(--ice); }
table.lb td { padding: 13px 16px; border-bottom: 1px solid var(--line); }
table.lb td.num { font-family: var(--mono); }
table.lb tr { transition: background 0.15s; }
table.lb tbody tr:hover { background: rgba(139, 228, 255, 0.04); cursor: pointer; }
.rank { font-family: var(--mono); color: var(--muted); font-weight: 700; }
.rank.top { color: var(--gold); }
.lb-coin { display: flex; align-items: center; gap: 12px; }
.lb-coin .avatar { width: 34px; height: 34px; font-size: 13px; }
.lb-coin small { display: block; color: var(--ice); font-family: var(--mono); font-size: 12px; }
.green { color: var(--mint); }

/* ---------- how it works ---------- */
.loop-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.loop-steps .card { padding: 20px; }
.loop-steps .n { font-family: var(--mono); font-size: 12px; color: var(--ice); }
.loop-steps h3 { font-size: 17px; margin: 8px 0 6px; }
.loop-steps p { margin: 0; color: var(--muted); font-size: 13.5px; }
.mech { display: grid; gap: 14px; }
.mech .card { padding: 24px; display: grid; grid-template-columns: 70px 1fr; gap: 18px; }
.mech .n { font-family: var(--display); font-size: 30px; font-weight: 800; color: transparent; -webkit-text-stroke: 1px rgba(139, 228, 255, 0.55); }
.mech h3 { font-size: 19px; margin-bottom: 8px; }
.mech p { margin: 0; color: var(--text-2); font-size: 14px; }
.defs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.defs .card { padding: 24px; }
.defs ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.defs li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 14px; color: var(--text-2); }
.defs li::before { content: '❄'; color: var(--ice); }
.faq { display: grid; gap: 10px; }
.faq details { padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--ice); font-family: var(--mono); font-size: 18px; }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--text-2); margin: 12px 0 0; font-size: 14px; }
.chain-table { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; font-size: 13.5px; }
.chain-table span { color: var(--muted); }
.chain-table b { font-family: var(--mono); font-weight: 600; word-break: break-all; }

/* ---------- coin detail ---------- */
.coin-hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.coin-hero .names h1 { font-size: clamp(28px, 3.5vw, 44px); }
.coin-hero .names .mono { color: var(--ice); }
.coin-hero .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.coin-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; margin-top: 22px; }
.chart-card { padding: 20px; }
.chart-card svg { width: 100%; height: 260px; }
.coin-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }

/* ---------- toasts & modal ---------- */
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column-reverse; gap: 10px; pointer-events: none; }
.toast {
  display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px; min-width: 260px;
  background: rgba(12, 18, 42, 0.92); border: 1px solid var(--line-2); backdrop-filter: blur(10px); box-shadow: var(--shadow);
  animation: toastIn 0.4s ease, toastOut 0.4s ease 3.6s forwards; font-size: 13px;
}
.toast .ti { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(139, 228, 255, 0.12); color: var(--ice); }
.toast b { display: block; font-size: 13px; }
.toast small { font-family: var(--mono); color: var(--muted); font-size: 11.5px; }
.toast.error .ti { background: rgba(251, 113, 133, 0.12); color: var(--rose); }
.toast.success .ti { background: rgba(94, 234, 212, 0.12); color: var(--mint); }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

.modal-bg { position: fixed; inset: 0; z-index: 70; background: rgba(2, 4, 12, 0.7); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-bg.open { display: flex; animation: fade 0.2s; }
.modal { width: 100%; max-width: 480px; padding: 26px; background: var(--panel-solid); }
.modal h3 { font-size: 20px; margin-bottom: 10px; }
.modal p { color: var(--text-2); font-size: 14px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }

.footer { margin-top: 90px; padding: 28px 0 10px; border-top: 1px solid var(--line); display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.footer a:hover { color: var(--text); }
.footer .links { display: flex; gap: 18px; flex-wrap: wrap; }

.fade-in { animation: pageIn 0.5s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- editorial layer (overrides the component defaults above) ---------- */
.btn { border-radius: var(--radius-sm); font-weight: 600; }
.btn-primary { background: var(--grad-btn); color: #0b0c0c; box-shadow: none; }
.btn-primary:hover { box-shadow: 0 0 0 3px rgba(237, 233, 223, 0.14); }
.btn-ghost-u { background: none; border: 0; padding: 12px 4px; font-weight: 500; text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; color: var(--text); }
.btn-ghost-u:hover { text-decoration-thickness: 2px; transform: none; }
.chip { border-radius: var(--radius-sm); }
.ca-chip { border-radius: var(--radius-sm); background: rgba(237, 233, 223, 0.05); border-color: var(--line); padding: 9px 12px; }
.ca-chip .lbl { color: var(--text-2); }
.wallet-btn { background: rgba(237, 233, 223, 0.08); border-color: var(--line); padding: 10px 18px; font-size: 14px; }
.wallet-btn.connected { background: rgba(127, 214, 176, 0.1); border-color: rgba(127, 214, 176, 0.3); }
.card { background: var(--panel); border-radius: var(--radius); backdrop-filter: none; box-shadow: none; }
.coin-card:hover { box-shadow: var(--glow); }

h1, h2, h3 { font-weight: 400; letter-spacing: -0.012em; text-wrap: balance; }
.h-hero { font-size: clamp(52px, 7.4vw, 116px); line-height: 0.94; font-weight: 400; }
.h-page { font-size: clamp(44px, 5.4vw, 80px); line-height: 0.98; font-weight: 400; }
.h-sec { font-size: clamp(34px, 3.6vw, 54px); line-height: 1; font-weight: 400; }
.grad { background: none; -webkit-background-clip: initial; background-clip: initial; color: inherit; -webkit-text-fill-color: currentColor; font-style: italic; }
.eyebrow { font-size: 13.5px; letter-spacing: 0.01em; font-weight: 500; }
.eyebrow .num { color: var(--gold); }
.lead { color: var(--text-2); font-size: 18px; }
.link-arrow { color: var(--text); font-weight: 500; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.step h3, .loop-steps h3, .mech h3, .howto h4 { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: -0.01em; }
.mech .n { -webkit-text-stroke: 1px rgba(229, 204, 146, 0.6); }
.step .n, .loop-steps .n, .howto .n { color: var(--gold); }
.page-head .h-page { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45); }

/* stats as ruled figures, not tiles */
.stats .stat, .net-stats .stat, .coin-kpis .stat {
  background: transparent; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; padding: 18px 0 0; box-shadow: none;
}
.stat .label { text-transform: none; letter-spacing: 0; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.stat .value { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 4.6vw, 68px); line-height: 1; margin-top: 10px; letter-spacing: -0.02em; }
.stat .value.ice { color: var(--text); }
.stat .delta { color: var(--muted); font-size: 13px; margin-top: 8px; }
.podium .big { font-family: var(--display); font-weight: 400; font-size: 40px; }

/* home hero over the landscape */
.hero2 { min-height: min(760px, 88vh); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; padding-bottom: 20px; }
.hero2 .eyebrow { margin-bottom: 20px; color: rgba(238, 234, 224, 0.75); }
.hero2 h1 { max-width: 13.5ch; text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35); }
.hero2 .lead { margin: 26px 0 0; max-width: 33em; font-size: 20px; color: rgba(238, 234, 224, 0.86); }
.hero2-row { display: flex; align-items: center; gap: 20px 28px; flex-wrap: wrap; margin-top: 34px; }
.hero2-row .aside-note { flex: 1 1 340px; max-width: 540px; color: rgba(238, 234, 224, 0.62); font-size: 15px; margin-left: 12px; }
.stats-rule { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; margin-top: 64px; }

/* $SNOWBALL on Montra + X */
.split2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
.esnow-card { padding: 30px; position: relative; overflow: hidden; }
.esnow-card .ticker-big { font-family: var(--display); font-size: clamp(56px, 7vw, 96px); line-height: 0.9; }
.esnow-card .ticker-big em { color: var(--ice); }
.kv-rows { display: grid; gap: 0; margin-top: 22px; }
.kv-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.kv-rows span { color: var(--muted); }
.kv-rows b { font-family: var(--mono); font-weight: 500; text-align: right; word-break: break-all; }
.x-card { padding: 30px; display: flex; flex-direction: column; gap: 16px; min-height: 360px; }
.x-card .x-head { display: flex; align-items: center; gap: 14px; }
.x-card .x-head .x-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #000; border: 1px solid var(--line-2); }
.x-card .x-head .x-avatar img { width: 34px; height: 34px; }
.x-card .x-head b { display: block; font-size: 17px; }
.x-card .x-head small { color: var(--muted); font-family: var(--mono); }
.x-embed { flex: 1; min-height: 260px; border-top: 1px solid var(--line); padding-top: 14px; overflow: hidden; }
.x-embed .x-empty { height: 100%; min-height: 220px; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 14px; border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 22px; }

@media (max-width: 1100px) {
  .topnav-row { gap: 18px; }
  .tabs { gap: 20px; }
  .split2 { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .topnav-row { flex-wrap: wrap; height: auto; padding-block: 10px 0; row-gap: 4px; }
  .tabs { order: 3; width: 100%; height: 44px; gap: 22px; }
  .stats-rule { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 560px) {
  .brand-word { font-size: 21px; }
  .ca-chip .lbl { display: none; }
  .ca-chip { padding: 8px 10px; }
  .wallet-btn { padding: 8px 12px; font-size: 13px; }
  .nav-right { gap: 6px; }
  #xLink { display: none; }
  .substrip .sub-right { display: none; }
  .hero2 { padding-top: 70px; min-height: 0; }
  .hero2 .lead { font-size: 17px; }
  .hero2-row .aside-note { margin-left: 0; }
  .stat .value { font-size: 40px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .compound, .lookup, .feed-grid, .net-grid, .coin-body, .launch-grid { grid-template-columns: 1fr; }
  .side-stack { position: static; }
  .steps, .stats, .net-stats, .coin-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .sidebar {
    position: fixed; left: 0; top: 34px; bottom: 0; width: 280px; height: auto; transform: translateX(-100%);
    transition: transform 0.25s ease; box-shadow: var(--shadow);
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; }
  .btn.menu-btn { display: inline-flex; }
  .howto, .defs, .loop-steps, .phases { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
  .podium .p1 { order: -1; }
  .mech .card { grid-template-columns: 1fr; gap: 6px; }
  .row2 { grid-template-columns: 1fr; }
  .lookup { padding: 22px; }
  .ca-chip .lbl { display: none; }
}
@media (max-width: 520px) {
  .steps, .stats, .net-stats, .coin-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 16px; }
  .coin-grid { grid-template-columns: 1fr; }
  .coin-stats { grid-template-columns: repeat(2, 1fr); }
  .input-row { flex-direction: column; }
  .hero-counter { min-width: 0; width: 86%; }
  .feed-row { grid-template-columns: 54px 1fr; }
  .feed-row .when { display: none; }
  .ca-chip { padding: 9px 10px; font-size: 12px; }
  .toolbar .select { width: 100%; }
  #toasts { display: none; }
}
.scrim { display: none; position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, 0.5); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

.coin-body > .chart-card { align-self: start; }

/* ---------- brand + coin art ---------- */
.brand-word { display: inline-flex; align-items: baseline; gap: 8px; font-size: 27px; }
.brand-word em { color: var(--text); }
.brand-word small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-style: normal; transform: translateY(-3px); }
.brand img { width: 34px; height: 34px; }
.avatar { border-radius: 12px; background: #1a1e1f; box-shadow: inset 0 0 0 1px rgba(238, 234, 224, 0.12); color: var(--text); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.avatar-logo { background: radial-gradient(circle at 50% 40%, #1d2a2a, #0d1112); }
.avatar.avatar-logo img { object-fit: contain; padding: 4px; }
.avatar.lg { width: 76px; height: 76px; border-radius: 16px; }
.avatar.xl { width: 96px; height: 96px; border-radius: 18px; }
.avatar.xs { width: 20px; height: 20px; border-radius: 5px; box-shadow: none; }
.lb-coin .avatar { border-radius: 9px; }
.ticker-item .avatar { flex: none; }
.ball-img { display: block; margin: 0 auto 10px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); }
.pv-main { display: flex; gap: 16px; align-items: center; }
.pv-name { font-family: var(--display); font-size: 34px; line-height: 1.05; margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-name.ph { color: var(--dim); }
.preview-card .kv-rows { margin-top: 18px; }
.preview-card .curve svg { height: 100px; }
.upload { align-items: flex-start; }
.upload-drop { border-radius: 16px; }
.loop-wrap svg { max-width: 600px; margin: 0 auto; }

/* ---------- wallet picker & account menu ---------- */
.wallet-wrap { position: relative; }
.wallet-btn { gap: 8px; }
.wallet-btn .wb-icon { width: 18px; height: 18px; border-radius: 5px; }
.wallet-btn .caret { width: 12px; height: 12px; color: var(--muted); }
.wallet-list { display: flex; flex-direction: column; gap: 8px; }
.wallet-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(237, 233, 223, 0.03);
  color: var(--text); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.wallet-opt:hover { border-color: rgba(169, 228, 238, 0.45); background: rgba(169, 228, 238, 0.06); }
.wallet-opt .wi { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.wi-blank { display: grid; place-items: center; background: rgba(237, 233, 223, 0.08); color: var(--text-2); }
.wi-blank svg { width: 18px; height: 18px; }
.wallet-opt .wn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-opt .ws { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.wallet-opt .ws.ok { color: var(--mint); }
.wallet-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50;
  width: min(290px, calc(100vw - 32px)); padding: 8px; background: var(--panel-solid);
  border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.7);
}
.wallet-menu[hidden] { display: none; }
.wm-head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 12px; }
.wm-head .wi { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.wm-head b { display: block; font-size: 14px; }
.wm-head .mono { font-size: 12.5px; color: var(--muted); }
.wm-net { display: flex; align-items: center; gap: 8px; margin: 0 8px 8px; padding: 7px 10px; border-radius: 8px; font-family: var(--mono); font-size: 12px; }
.wm-net i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.wm-net.ok { color: var(--mint); background: rgba(127, 214, 176, 0.08); }
.wm-net.warn { color: var(--amber); background: rgba(232, 184, 92, 0.1); }
.wm-item {
  display: block; width: 100%; padding: 10px 10px; border: 0; border-radius: 8px; background: none;
  color: var(--text-2); font: inherit; font-size: 14px; text-align: left; cursor: pointer; text-decoration: none;
}
.wm-item:hover { background: rgba(237, 233, 223, 0.06); color: var(--text); }
.wm-item.strong { color: var(--amber); font-weight: 600; }
.wm-item.danger { color: var(--rose); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; padding-top: 12px; }
