/* LitStreams: "digital silver" design system. No external fonts, no trackers. */
:root {
  --bg: #06080b;
  --bg-2: #0b0e13;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef1f6;
  --muted: #8b95a7;
  --faint: #596273;
  --silver: #cfd8e6;
  --ice: #8db4ff;
  --ice-2: #5f8fe8;
  --ok: #4ade9a;
  --warn: #f5c35b;
  --err: #ff7b72;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Code", Menlo, Consolas, monospace;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font: 400 15px/1.55 var(--font);
  background:
    radial-gradient(1100px 560px at 50% -220px, rgba(141, 180, 255, 0.13), transparent 62%),
    radial-gradient(700px 420px at 100% 0, rgba(207, 216, 230, 0.06), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--ice); text-decoration: none; transition: color 0.15s; }
a:hover { color: #b9d0ff; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); font-weight: 700; }
h2 { font-size: 1.15rem; font-weight: 650; }
h3 { font-size: 0.95rem; font-weight: 600; }
p { margin: 0.5rem 0; }
code, .mono { font-family: var(--mono); font-size: 0.88em; }
[hidden] { display: none !important; }
::selection { background: rgba(141, 180, 255, 0.3); }

.grad-text {
  background: linear-gradient(180deg, #ffffff 20%, #9aa7ba 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile nav inside it. */
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6, 8, 11, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}
.topbar-in {
  max-width: 1040px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand:hover { color: #fff; }
.brand svg, .brand img { width: 30px; height: 30px; flex: none; border-radius: 8px; }
.brand b { color: var(--silver); font-weight: 600; }
nav { display: flex; gap: 0.15rem; margin: 0 auto; padding: 0.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
nav a {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem; white-space: nowrap;
  transition: color 0.2s, background 0.25s var(--ease);
}
nav a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
nav a:hover { color: var(--text); }
nav a.active { color: #0a0d12; background: linear-gradient(180deg, #f4f7fb, #c5cfde); box-shadow: 0 1px 8px rgba(141, 180, 255, 0.25); }
.wallet { display: flex; align-items: center; gap: 0.5rem; }
.wallet-btn { display: inline-flex; align-items: center; gap: 0.55rem; padding-left: 0.5rem; cursor: default; }
.avatar { width: 20px; height: 20px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(74, 222, 154, 0.16); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(245, 195, 91, 0.16); }

/* ---------- Strips and banners ---------- */
.strip {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem; flex-wrap: wrap;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; padding: 0.12rem 0.5rem; border-radius: 999px; color: var(--warn); background: rgba(245, 195, 91, 0.1); border: 1px solid rgba(245, 195, 91, 0.25); }
.banner {
  display: flex; gap: 0.75rem; justify-content: center; align-items: center; flex-wrap: wrap;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: var(--warn);
  background: linear-gradient(180deg, rgba(245, 195, 91, 0.12), rgba(245, 195, 91, 0.05));
  border-bottom: 1px solid rgba(245, 195, 91, 0.25);
}

/* ---------- Layout ---------- */
main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 2.25rem 1.25rem 4rem; }
#view > * { animation: rise 0.5s var(--ease) both; }
#view > *:nth-child(2) { animation-delay: 0.05s; }
#view > *:nth-child(3) { animation-delay: 0.1s; }
#view > *:nth-child(4) { animation-delay: 0.15s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.page-head { margin-bottom: 1.5rem; }
.lead { color: var(--muted); font-size: 1rem; max-width: 56ch; margin-top: 0.5rem; }
.footer {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  max-width: 1040px; width: 100%; margin: 0 auto;
  padding: 1.25rem; color: var(--faint); font-size: 0.82rem;
  border-top: 1px solid var(--line);
}
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 18px 40px -24px rgba(0, 0, 0, 0.8);
}
.card + .card { margin-top: 1rem; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 0.85rem; }
.ok { color: var(--ok); }
.err { color: var(--err); }
.warn { color: var(--warn); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.grid-2 > .card + .card, .steps > .card { margin-top: 0; }
.sticky { position: sticky; top: calc(var(--nav-h) + 1rem); }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.15rem; }
.field > label, .label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 0.4rem; letter-spacing: 0.01em; }
.hint { color: var(--faint); font-size: 0.82rem; margin: 0.4rem 0 0; }
input[type=text], input[type=number], input[type=datetime-local], select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  color-scheme: dark;
}
input::placeholder { color: var(--faint); }
input:hover, select:hover { border-color: var(--line-2); }
input:focus, select:focus { outline: none; border-color: var(--ice-2); box-shadow: 0 0 0 4px rgba(95, 143, 232, 0.2); }
input.invalid { border-color: rgba(255, 123, 114, 0.6); }
.input-wrap { position: relative; }
.input-wrap input { padding-right: 7.5rem; font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.input-wrap .suffix { position: absolute; right: 0.55rem; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.row { display: flex; gap: 0.5rem; }
.row > * { flex: 1 1 0; }
.seg { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.seg-btn {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font: inherit; font-size: 0.88rem; font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.seg-btn:hover { color: var(--text); border-color: var(--line-2); }
.seg-btn[aria-pressed=true] { color: #0a0d12; background: linear-gradient(180deg, #f4f7fb, #c5cfde); border-color: transparent; box-shadow: 0 2px 12px rgba(141, 180, 255, 0.25); }
.toggle-card {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.toggle-card:hover { border-color: var(--line-2); }
.toggle-card b { display: block; font-size: 0.92rem; margin-bottom: 0.15rem; }
.toggle-card span.t { color: var(--muted); font-size: 0.84rem; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; cursor: pointer; transition: background 0.25s var(--ease), border-color 0.25s; margin: 0; padding: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #dfe5ee; transition: transform 0.25s var(--ease); }
.switch:checked { background: var(--ice-2); border-color: var(--ice-2); }
.switch:checked::after { transform: translateX(16px); background: #fff; }
.switch:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text);
  font: inherit; font-size: 0.92rem; font-weight: 600; white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.25s, opacity 0.2s;
}
.btn:hover:not(:disabled) { background: var(--surface-3); border-color: rgba(255, 255, 255, 0.28); color: #fff; transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0) scale(0.99); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:focus-visible, .seg-btn:focus-visible, .chip-btn:focus-visible, nav a:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(180deg, #f6f9fd, #bfc9d9);
  color: #0a0d12;
  border-color: transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 8px 24px -8px rgba(141, 180, 255, 0.45);
}
.btn-primary:hover:not(:disabled) { background: linear-gradient(180deg, #ffffff, #cdd6e4); color: #0a0d12; box-shadow: 0 1px 0 #fff inset, 0 10px 28px -8px rgba(141, 180, 255, 0.6); }
.btn-danger { color: var(--err); border-color: rgba(255, 123, 114, 0.35); background: rgba(255, 123, 114, 0.07); }
.btn-danger:hover:not(:disabled) { background: rgba(255, 123, 114, 0.14); border-color: rgba(255, 123, 114, 0.6); color: #ffa39c; }
.btn-danger-solid { background: linear-gradient(180deg, #ff8f87, #e5574e); color: #1b0605; border-color: transparent; }
.btn-danger-solid:hover:not(:disabled) { background: linear-gradient(180deg, #ffa19a, #ee685f); color: #1b0605; }
.btn-sm { padding: 0.38rem 0.75rem; font-size: 0.82rem; border-radius: var(--r-sm); }
.btn-block { width: 100%; padding: 0.9rem; font-size: 1rem; margin-top: 1rem; }
.chip-btn { background: none; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ice); font: inherit; font-size: 0.75rem; font-weight: 600; padding: 0.15rem 0.6rem; cursor: pointer; transition: background 0.2s; }
.chip-btn:hover { background: rgba(141, 180, 255, 0.12); }

/* ---------- Preview / summary ---------- */
.summary-text { color: var(--muted); line-height: 1.65; }
.summary-text strong { color: var(--text); font-weight: 600; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 1rem; }
.stat { padding: 0.65rem 0.8rem; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); border-radius: var(--r-md); }
.stat span { display: block; font-size: 0.72rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.stat b { display: block; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 0.9rem; margin-top: 0.1rem; word-break: break-word; }
.mode-note { margin-top: 1rem; padding: 0.7rem 0.9rem; border-radius: var(--r-md); font-size: 0.86rem; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.mode-note.cant { border-color: rgba(245, 195, 91, 0.3); background: rgba(245, 195, 91, 0.07); color: #e9cf91; }
.errors { margin: 0.9rem 0 0; padding-left: 1.1rem; color: var(--err); font-size: 0.86rem; }
.placeholder { color: var(--faint); font-size: 0.92rem; padding: 1rem 0; }

/* ---------- Stream cards ---------- */
.list-tools { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 0 0 1rem; }
.list-tools label.inline { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); font-size: 0.88rem; cursor: pointer; }
.totals { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.totals .hero-label { margin: 0; }
.stream-card { transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s; }
.stream-card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 24px 44px -22px rgba(0, 0, 0, 0.9); }
.sc-top { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.sc-id { font-weight: 700; color: var(--text); font-size: 1.02rem; }
.sc-id:hover { color: var(--ice); }
.sc-party { margin-left: auto; color: var(--muted); font-size: 0.85rem; }
.badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.74rem; font-weight: 650; letter-spacing: 0.02em; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--silver); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.badge.streaming { color: var(--ok); border-color: rgba(74, 222, 154, 0.35); background: rgba(74, 222, 154, 0.08); }
.badge.streaming::before { animation: pulse 1.6s ease-in-out infinite; }
.badge.pending { color: var(--warn); border-color: rgba(245, 195, 91, 0.35); background: rgba(245, 195, 91, 0.08); }
.badge.canceled { color: var(--err); border-color: rgba(255, 123, 114, 0.35); background: rgba(255, 123, 114, 0.07); }
.badge.locked { color: var(--muted); }
.badge.locked::before { display: none; }
.badge.settled { color: var(--ice); border-color: rgba(141, 180, 255, 0.35); background: rgba(141, 180, 255, 0.08); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 154, 0.5); } 50% { box-shadow: 0 0 0 5px rgba(74, 222, 154, 0); } }
.hero { margin-top: 1rem; }
.hero-label { font-size: 0.74rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 650; margin-bottom: 0.15rem; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; font-weight: 700; letter-spacing: -0.025em; font-size: 1.9rem; line-height: 1.15; white-space: nowrap; }
.num .num-dim { color: var(--faint); font-weight: 500; }
.num .num-unit { color: var(--muted); font-weight: 500; font-size: 0.5em; letter-spacing: 0; margin-left: 0.35rem; }
.num.big { font-size: clamp(2.1rem, 6vw, 3.1rem); }
.bar { position: relative; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin: 1rem 0 0.9rem; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.bar .fill-s { width: 0; background: linear-gradient(90deg, #5f8fe8, #cfd8e6); box-shadow: 0 0 14px rgba(141, 180, 255, 0.5); }
.bar .fill-w { width: 0; background: rgba(255, 255, 255, 0.92); }
.bar.live .fill-s::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent); transform: translateX(-100%); animation: sheen 2.4s ease-in-out infinite; }
@keyframes sheen { to { transform: translateX(100%); } }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.7rem 1rem; }
.kv div span { display: block; font-size: 0.72rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.kv div b { display: block; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 0.9rem; margin-top: 0.1rem; }
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.1rem; }
.actions:empty { display: none; }

/* ---------- Stream page ---------- */
.crumb { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.crumb h1 { margin-right: 0.25rem; }
.crumb .spacer { flex: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.7rem 1.5rem; margin: 0; }
.dl dt { color: var(--faint); font-size: 0.85rem; }
.dl dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; word-break: break-word; }
.timeline { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.82rem; color: var(--muted); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.step { padding: 1.1rem; }
.step .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; color: #0a0d12; background: linear-gradient(180deg, #f4f7fb, #c5cfde); margin-bottom: 0.7rem; }
.step p { color: var(--muted); font-size: 0.9rem; margin: 0.35rem 0 0; }
.risks { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.7rem; }
.risks li { padding: 0.85rem 1rem; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); border-radius: var(--r-md); font-size: 0.92rem; color: var(--muted); }
.risks li b { color: var(--text); display: block; margin-bottom: 0.1rem; }

/* ---------- States ---------- */
.empty { text-align: center; padding: 2.75rem 1rem; color: var(--muted); }
.empty .ico { display: block; width: 44px; height: 44px; margin: 0 auto 0.8rem; color: var(--faint); }
.empty .ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.empty h2 { color: var(--text); margin-bottom: 0.25rem; }
.empty .btn { margin-top: 1rem; }
.skeleton { height: 188px; overflow: hidden; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 1.5s infinite; }

/* ---------- Toasts and dialog ---------- */
.toasts { position: fixed; right: 1.25rem; bottom: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; width: min(400px, calc(100vw - 2.5rem)); z-index: 40; pointer-events: none; }
.toast {
  pointer-events: auto;
  position: relative;
  padding: 0.85rem 2.2rem 0.85rem 1rem;
  font-size: 0.9rem;
  background: rgba(18, 22, 29, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--faint);
  border-radius: var(--r-md);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
  animation: slide-in 0.35s var(--ease) both;
}
.toast.pending { border-left-color: var(--warn); }
.toast.success { border-left-color: var(--ok); }
.toast.error { border-left-color: var(--err); }
.toast .x { position: absolute; top: 0.4rem; right: 0.5rem; background: none; border: 0; color: var(--faint); font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0.15rem 0.3rem; border-radius: 6px; }
.toast .x:hover { color: var(--text); background: var(--surface-2); }
@keyframes slide-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
dialog {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #151a22, #0f1319);
  color: var(--text);
  padding: 1.5rem;
  width: min(440px, calc(100vw - 2rem));
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9);
}
dialog[open] { animation: slide-in 0.3s var(--ease) both; }
dialog::backdrop { background: rgba(3, 5, 8, 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog p { color: var(--muted); }
.dialog-actions { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: 1.25rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .hero-grid { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 860px) {
  .topbar-in { padding: 0 1rem; }
  .wallet { margin-left: auto; }
  nav {
    position: fixed; left: 0.75rem; right: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom));
    margin: 0; z-index: 30; justify-content: space-between;
    background: rgba(16, 20, 27, 0.88);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border-color: var(--line-2);
    box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.8);
  }
  nav a { flex: 1 1 0; flex-direction: column; gap: 0.1rem; padding: 0.45rem 0.2rem; font-size: 0.72rem; border-radius: 999px; }
  nav a svg { width: 18px; height: 18px; }
  main { padding: 1.5rem 1rem 7rem; }
  .footer { padding-bottom: 6rem; }
  .toasts { right: 1rem; bottom: calc(5.5rem + env(safe-area-inset-bottom)); width: calc(100vw - 2rem); }
  .actions .btn { flex: 1 1 auto; }
}
@media (max-width: 560px) {
  .sc-party { margin-left: 0; width: 100%; }
  .dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .dl dd { margin-bottom: 0.7rem; }
}
@media (min-width: 861px) {
  body { background-attachment: fixed; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
