/* GHOSTRA. A ledger in the fog: slate night, condensed signage type for headlines and numbers,
   a plain humanist sans for reading, a mono for everything that lives on chain. */
@font-face { font-family: "Shoulders"; src: url(fonts/BigShoulders-Bold.woff) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Shoulders"; src: url(fonts/BigShoulders-Regular.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fira"; src: url(fonts/FiraSans-Regular.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fira"; src: url(fonts/FiraSans-SemiBold.woff) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(fonts/IBMPlexMono-Regular.woff) format("woff"); font-display: swap; }
:root {
  --night: #1b222a; --deep: #13181e; --ink: #e8ecf0; --ink2: #b6c0ca; --muted: #7e8995; --dim: #59636e;
  --line: rgba(232, 236, 240, .11); --line2: rgba(232, 236, 240, .2); --well: rgba(8, 11, 15, .38);
  --ecto: #8fd6cc; --ecto-dim: rgba(143, 214, 204, .13); --warn: #e3a072;
  --head: "Shoulders", "Arial Narrow", sans-serif; --body: "Fira", system-ui, sans-serif; --mono: "Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--deep); }
body { margin: 0; color: var(--ink); font: 400 17px/1.6 var(--body); overflow-x: hidden; min-height: 100vh; background: radial-gradient(110% 60% at 75% 0%, #27323d 0%, var(--night) 50%, var(--deep) 100%) fixed; font-variant-numeric: tabular-nums; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ecto); outline-offset: 3px; }
::selection { background: var(--ecto); color: var(--deep); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Mist that drifts behind everything */
.fog { position: fixed; inset: -25%; z-index: 0; pointer-events: none; overflow: hidden; }
.fog i { position: absolute; width: 70vmax; height: 36vmax; border-radius: 50%; background: radial-gradient(closest-side, rgba(200, 214, 228, .09), rgba(200, 214, 228, 0)); filter: blur(24px); animation: drift 70s ease-in-out infinite alternate; }
.fog i:nth-child(1) { left: -10%; top: 10%; }
.fog i:nth-child(2) { right: -20%; top: 45%; animation-duration: 95s; animation-delay: -30s; }
.fog i:nth-child(3) { left: 20%; bottom: -5%; animation-duration: 80s; animation-delay: -50s; }
@keyframes drift { to { transform: translate(16vw, -6vh) scale(1.2); } }

/* Top bar and the chain ticker under it */
.top { position: sticky; top: 0; z-index: 30; background: rgba(27, 34, 42, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 32px; height: 62px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; font: 700 25px/1 var(--head); letter-spacing: .14em; }
.logo img { width: 44px; height: 32px; display: block; }
.top nav { display: flex; gap: 24px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); } .top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.top .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
@media (max-width: 760px) { .top .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 12px 16px; } .top nav { order: 3; width: 100%; } }
.ticker { border-bottom: 1px solid var(--line); background: rgba(8, 11, 15, .3); font: 400 12.5px/1 var(--mono); color: var(--muted); position: relative; z-index: 2; }
.ticker .wrap { display: flex; overflow-x: auto; scrollbar-width: none; }
.ticker .wrap::-webkit-scrollbar { display: none; }
.ticker span { padding: 10px 18px; border-left: 1px solid var(--line); white-space: nowrap; }
.ticker span:first-child { border-left: 0; padding-left: 0; }
.ticker b { font-weight: 400; color: var(--ink); margin-left: 6px; }
.ticker .on::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ecto); margin-right: 8px; vertical-align: 1px; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* Buttons and fields */
.btn { font: 600 15px/1 var(--body); padding: 15px 22px; border-radius: 6px; border: 0; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--ink); color: var(--deep); transition: transform .12s, background .2s, box-shadow .2s; }
.btn:hover { background: #fff; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn.small { padding: 10px 14px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
input, select { font: inherit; color: var(--ink); background: var(--well); border: 1px solid var(--line2); border-radius: 6px; padding: 13px 14px; width: 100%; }
input::placeholder { color: #626d79; }
input:focus, select:focus { outline: none; border-color: var(--ecto); }
label { display: block; font-size: 14px; color: var(--muted); margin: 16px 0 6px; }
.err { color: var(--warn); font-size: 14px; min-height: 1.3em; margin-top: 8px; }
.note { color: var(--muted); font-size: 14px; }
.card { background: rgba(232, 236, 240, .035); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 8px; padding: 28px; box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -50px rgba(0, 0, 0, .9); }

/* Addresses that dissolve or appear */
.addr { font: 400 14.5px/1.5 var(--mono); color: var(--ecto); word-break: break-all; }
.dissolve span { display: inline-block; animation: vanish 2.6s ease-in forwards; animation-delay: calc(var(--d) * 1ms + var(--wait, 1600ms)); }
@keyframes vanish { to { opacity: 0; filter: blur(6px); transform: translateY(-10px) scale(1.4); } }
.appear span { display: inline-block; animation: arrive .9s ease-out both; animation-delay: calc(var(--d) * 1ms); }
@keyframes arrive { from { opacity: 0; filter: blur(8px); } }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.hero h1 { font: 700 clamp(64px, 8.6vw, 124px)/.86 var(--head); text-transform: uppercase; margin: 0 0 28px; letter-spacing: .005em; }
.hero .lede { font-size: 19px; max-width: 30em; margin: 0 0 30px; color: var(--ink2); }
.claim { display: flex; align-items: stretch; gap: 6px; background: var(--well); border-radius: 8px; padding: 5px; max-width: 560px; box-shadow: inset 0 0 0 1px var(--line2); transition: box-shadow .2s; }
.claim:focus-within { box-shadow: inset 0 0 0 1px var(--ecto), 0 0 0 4px var(--ecto-dim); }
.claim .pre { display: flex; align-items: center; padding: 0 0 0 13px; color: var(--muted); font: 400 16px/1 var(--mono); white-space: nowrap; }
.claim input { border: 0; background: transparent; font: 400 16px/1 var(--mono); padding: 12px 2px; min-width: 0; border-radius: 0; }
.claim .btn { flex: none; white-space: nowrap; }
.claimnote { font-size: 14px; color: var(--muted); margin-top: 12px; min-height: 1.4em; }
.claimnote.ok { color: var(--ecto); } .claimnote.bad { color: var(--warn); }
.mine { margin-top: 16px; padding: 18px 20px; }
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; max-width: 600px; margin: 34px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 14px; color: var(--muted); }
.proof b { display: block; font: 700 22px/1.1 var(--head); color: var(--ink); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 3px; }
@media (max-width: 940px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 44px; } .hero { padding: 44px 0 64px; } }
@media (max-width: 520px) { .claim { flex-wrap: wrap; } .claim .pre { padding: 10px 0 0 10px; } .claim input { flex: 1 1 60%; padding-left: 10px; } .claim .btn { width: 100%; } .proof { grid-template-columns: minmax(0, 1fr); } }

/* The two views: what the chain sees, what the owner sees */
.lens { padding: 0; overflow: hidden; }
.lens .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.lens .link { font: 400 14px/1.3 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.switch { display: inline-flex; padding: 3px; border-radius: 7px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.switch button { all: unset; cursor: pointer; padding: 7px 11px; border-radius: 5px; font: 600 13px/1 var(--body); color: var(--muted); transition: background .25s, color .25s; }
.switch button[aria-pressed="true"] { background: var(--ink); color: var(--deep); }
.switch button:focus-visible { outline: 2px solid var(--ecto); outline-offset: 2px; }
.lens .rows { display: grid; }
.lens .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); transition: background .5s; }
.lens .row .a { font: 400 13.5px/1.35 var(--mono); color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .5s; }
.lens .row .a .addr { color: inherit; font: inherit; word-break: normal; }
.lens .row .v { font: 400 13.5px/1 var(--mono); color: var(--ink2); }
.lens .row .who { grid-column: 1 / -1; font-size: 13px; color: var(--muted); transition: color .5s; }
.lens .row .who::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; background: var(--dim); vertical-align: 1px; transition: background .5s; }
.lens.mine-view .row { background: rgba(143, 214, 204, .05); }
.lens.mine-view .row .a, .lens.mine-view .row .who { color: var(--ecto); }
.lens.mine-view .row .who::before { background: var(--ecto); }
.lens .sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px 6px; font-size: 14px; color: var(--muted); }
.lens .sum b { font: 700 34px/1 var(--head); color: var(--ink); white-space: nowrap; }
.lens .foot { margin: 0; padding: 0 18px 16px; font-size: 13px; color: var(--muted); }

/* Sections */
section.band { padding: 92px 0; position: relative; z-index: 1; border-top: 1px solid var(--line); }
.band h2 { font: 700 clamp(44px, 5.6vw, 76px)/.9 var(--head); text-transform: uppercase; margin: 0 0 16px; letter-spacing: .005em; }
.band .intro { max-width: 40em; color: var(--ink2); margin: 0 0 44px; font-size: 18px; }
.sechead { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.sechead .intro { margin: 0; }
.stamp { font: 400 13px/1.4 var(--mono); color: var(--muted); }

/* Network numbers */
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line2); }
.metric { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.metric + .metric { padding-left: 24px; border-left: 1px solid var(--line); }
.metric:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.metric b { display: block; font: 400 clamp(44px, 5vw, 68px)/.95 var(--head); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric b small { font-size: .45em; color: var(--muted); margin-left: 6px; }
.metric span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .metric, .metric + .metric, .metric:nth-child(3n+1) { padding: 18px 12px 18px 0; border-left: 0; } .metric:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); } }
.chart { margin-top: 44px; }
.chart h3 { font: 600 15px/1.3 var(--body); margin: 0 0 14px; color: var(--ink2); }
.chart .cap { display: flex; justify-content: space-between; gap: 12px; font: 400 12.5px/1.4 var(--mono); color: var(--muted); margin-top: 8px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; border-bottom: 1px solid var(--line2); }
.bars i { flex: 1 1 0; min-width: 2px; background: rgba(232, 236, 240, .24); border-radius: 2px 2px 0 0; }
.bars i.hot { background: var(--ecto); }
.bars i:hover { background: var(--ink); }
.bars i[data-n="0"] { background: rgba(232, 236, 240, .07); }

/* Ledger of recent stealth payments */
.tablewrap { overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font: 400 14px/1.4 var(--mono); }
.ledger th { text-align: left; font: 600 13px/1.2 var(--body); color: var(--muted); padding: 0 16px 12px 0; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.ledger td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); white-space: nowrap; color: var(--ink2); }
.ledger td a { text-decoration: none; } .ledger td a:hover { text-decoration: underline; color: var(--ink); }
.ledger td.st a { color: var(--ecto); }
.ledger .num { text-align: right; padding-right: 0; }
.ledger tr.fresh td { animation: arrive 1.2s ease-out both; }
.empty { color: var(--muted); font-size: 15px; padding: 20px 0; }

/* How it works */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; counter-reset: s; border-top: 1px solid var(--line2); }
.flow li { counter-increment: s; padding: 26px 28px 0 0; min-width: 0; }
.flow li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.flow .n { font: 400 13px/1 var(--mono); color: var(--muted); margin-bottom: 14px; }
.flow .n::before { content: "0" counter(s) "  "; color: var(--ecto); white-space: pre; }
.flow h3 { font: 700 34px/.95 var(--head); text-transform: uppercase; margin: 0 0 12px; }
.flow p { margin: 0 0 18px; color: var(--ink2); font-size: 16px; }
.math { font: 400 13px/1.75 var(--mono); color: var(--ink2); padding: 14px 16px; border-radius: 6px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; white-space: pre; margin: 0; }
.math .k { color: var(--ecto); } .math .c { color: #66717d; }
@media (max-width: 900px) { .flow { grid-template-columns: minmax(0, 1fr); } .flow li, .flow li + li { padding: 26px 0 0; border-left: 0; } .flow li + li { margin-top: 30px; border-top: 1px solid var(--line); } }

/* Comparison */
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 700 20px/1 var(--head); text-transform: uppercase; letter-spacing: .03em; color: var(--muted); border-bottom: 1px solid var(--line2); }
.compare thead th:last-child { color: var(--ecto); }
.compare tbody th { font-weight: 400; color: var(--ink2); width: 32%; padding-left: 0; }
.compare td:nth-child(2) { color: var(--muted); }
.compare td:last-child { color: var(--ink); background: rgba(143, 214, 204, .04); }
@media (max-width: 640px) { .compare { font-size: 14px; } .compare th, .compare td { padding: 12px 10px; } }

/* Contracts */
.contracts { border-top: 1px solid var(--line2); }
.contract { display: grid; grid-template-columns: 230px minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contract b { font: 700 24px/1 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.contract p { margin: 0; color: var(--ink2); font-size: 15px; }
.contract a { font: 400 13.5px/1.4 var(--mono); color: var(--ecto); text-decoration: none; word-break: break-all; }
.contract a:hover { text-decoration: underline; }
@media (max-width: 900px) { .contract { grid-template-columns: minmax(0, 1fr); } }

/* Limits */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; list-style: none; padding: 0; margin: 0; }
.facts li { padding: 20px 0; border-top: 1px solid var(--line); } .facts b { display: block; margin-bottom: 4px; font-weight: 600; } .facts span { color: var(--ink2); }
@media (max-width: 760px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.closing { text-align: center; }
.closing h2 { font-size: clamp(52px, 7vw, 104px); margin-bottom: 30px; }
.closing .acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
footer { border-top: 1px solid var(--line); padding: 34px 0 50px; color: var(--muted); font-size: 14px; position: relative; z-index: 1; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; } footer nav { display: flex; gap: 18px; }

/* Pay and vault pages */
.page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; padding: 72px 28px 96px; align-items: start; }
.page > * { min-width: 0; }
.page h1 { font: 700 clamp(56px, 7vw, 100px)/.88 var(--head); text-transform: uppercase; margin: 0 0 22px; word-break: break-word; }
.page .lede { font-size: 18px; color: var(--ink2); max-width: 30em; margin: 0 0 24px; }
.amt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.amt input { font: 400 34px/1 var(--mono); padding: 14px 16px; }
.amt span { font: 400 20px/1 var(--mono); color: var(--muted); }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.quick button { all: unset; cursor: pointer; padding: 8px 13px; border-radius: 5px; font: 400 14px/1 var(--mono); color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line2); }
.quick button:hover { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.card .btn.wide { width: 100%; margin-top: 20px; }
.sent { margin-top: 22px; padding: 18px; border-radius: 6px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.sent .addr { font-size: 15px; display: block; margin: 8px 0; }
.ghosts { display: grid; margin-top: 18px; border-top: 1px solid var(--line); }
.ghostrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ghostrow .addr { font-size: 13.5px; } .ghostrow b { font: 400 16px/1 var(--mono); } .ghostrow small { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.total { font: 700 clamp(64px, 8vw, 104px)/.9 var(--head); margin: 6px 0 6px; }
.warnbox { margin-top: 14px; padding: 12px 14px; border-radius: 6px; background: rgba(227, 160, 114, .1); color: var(--warn); font-size: 14px; }
.progress { margin-top: 12px; font: 400 13.5px/1.6 var(--mono); color: var(--ink2); white-space: pre-wrap; }
.metabox { margin-top: 26px; padding: 14px 16px; border-radius: 6px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); font: 400 12.5px/1.55 var(--mono); color: var(--muted); word-break: break-all; }
.metabox b { display: block; font: 600 13px/1.4 var(--body); color: var(--ink2); margin-bottom: 4px; }
.steps-mini { list-style: none; padding: 0; margin: 26px 0 0; display: grid; font-size: 15px; color: var(--ink2); counter-reset: m; border-top: 1px solid var(--line); }
.steps-mini li { counter-increment: m; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.steps-mini li::before { content: "0" counter(m); font: 400 13px/1.7 var(--mono); color: var(--ecto); }
.cardhead { font: 700 22px/1 var(--head); text-transform: uppercase; letter-spacing: .03em; color: var(--ink2); margin: 0 0 6px; }
@media (max-width: 900px) { .page { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 40px; } }
@media (max-width: 640px) { .page { padding-left: 16px; padding-right: 16px; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--deep); padding: 13px 20px; border-radius: 6px; font-size: 15px; max-width: calc(100% - 32px); }

/* Contract address slot */
.cabox { display: flex; align-items: stretch; border-radius: 6px; overflow: hidden; max-width: 560px; margin-top: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.cabox .lab { display: grid; place-items: center; padding: 10px 14px; font: 700 16px/1 var(--head); letter-spacing: .08em; background: rgba(232, 236, 240, .07); color: var(--ink2); }
.cabox .val { flex: 1 1 auto; min-width: 0; padding: 11px 14px; font: 400 13px/1.4 var(--mono); word-break: break-all; display: flex; align-items: center; }
.cabox:not(.live) .val { font-family: var(--body); color: var(--muted); font-size: 14px; word-break: normal; }
.cabox .cbtn { all: unset; cursor: pointer; display: grid; place-items: center; padding: 10px 16px; font: 600 14px/1 var(--body); border-left: 1px solid var(--line); white-space: nowrap; }
.cabox .cbtn:hover { background: rgba(232, 236, 240, .06); }
@media (max-width: 640px) { .cabox { flex-wrap: wrap; } .cabox .cbtn { flex: 1 1 auto; border-left: 0; border-top: 1px solid var(--line); } }
@media (prefers-reduced-motion: reduce) { .fog i, .dissolve span, .appear span, .ticker .on::before, .ledger tr.fresh td { animation: none; } .lens .row, .lens .row * { transition: none; } }
@media (max-width: 760px) { .metric b { font-size: 36px; } .metric b small { display: block; margin: 4px 0 0; font-size: 15px; } .ledger .hide-sm { display: none; } }
