@font-face { font-family: "MartelSans"; src: url("/fonts/MartelSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manjari"; src: url("/fonts/Manjari-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manjari"; src: url("/fonts/Manjari-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0a0a0a; --panel: #141414; --line: #262626; --text: #f2f2f2; --muted: #9a9a9a;
  --accent: #ffffff; --ok: #9be3b4; --err: #ff8a8a;
  --sans: "Manjari", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --head: "MartelSans", var(--sans);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: radial-gradient(1200px 600px at 50% -10%, #1c1c1c 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text); font: 17px/1.55 var(--sans); min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: #fff; }
code { font-family: var(--mono); font-size: .9em; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.top { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; max-width: 980px; width: 100%; margin: 0 auto; }
.brand, .xlink { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { filter: invert(1); }
.brand span { font-family: var(--head); font-size: 17px; letter-spacing: .2px; padding-top: 3px; }
.xlink { color: var(--muted); font-size: 15px; }
.xlink:hover { color: var(--text); }

main { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px 48px; flex: 1; }
.hero { text-align: center; padding: 18px 0 26px; }
.coin { width: 168px; height: 168px; filter: drop-shadow(0 18px 40px rgba(255,255,255,.07)); }
.kicker { margin: 14px 0 0; color: var(--muted); text-transform: uppercase; letter-spacing: .18em; font-size: 12.5px; }
h1 { font-family: var(--head); font-size: clamp(34px, 6vw, 52px); line-height: 1.1; margin: 8px 0 12px; letter-spacing: -.5px; }
h2 { font-family: var(--head); font-size: 20px; margin: 0 0 12px; }
h3 { font-family: var(--head); font-size: 16px; margin: 0 0 6px; }
.lead { color: #cfcfcf; max-width: 590px; margin: 0 auto; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #0d0d0d; border: 1px solid var(--line); border-radius: 12px; padding: 5px; margin-bottom: 20px; }
.tab { background: transparent; color: var(--muted); border: 0; border-radius: 8px; padding: 10px 0 8px; font: 700 16px var(--head); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--text); color: #000; }
.tab:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

label { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 8px; }
.row { display: flex; gap: 10px; }
input {
  flex: 1; min-width: 0; background: #0b0b0b; border: 1px solid var(--line); border-radius: 10px; color: var(--text);
  padding: 13px 14px; font: 15px var(--mono);
}
input:focus { border-color: #555; outline: none; }
button {
  background: var(--accent); color: #000; border: 0; border-radius: 10px; padding: 12px 18px 10px; font: 700 16px var(--head);
  cursor: pointer; white-space: nowrap;
}
button:disabled { opacity: .55; cursor: progress; }
button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); padding: 9px 14px 7px; font-size: 14px; }
.progress { height: 4px; background: #222; border-radius: 4px; margin-top: 14px; overflow: hidden; }
.progress .bar { height: 100%; width: 30%; background: #fff; border-radius: 4px; animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
.message { min-height: 24px; margin: 12px 0 0; font-size: 15px; word-break: break-word; }
.message.ok { color: var(--ok); }
.message.err { color: var(--err); }
.message a { color: inherit; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0 0; }
.facts div { background: #0e0e0e; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 8px; }
.facts dt { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 2px 0 0; font: 15px var(--mono); }
.fineprint { color: var(--muted); font-size: 13.5px; margin: 14px 0 0; }

section.recent, section.give, section.about { margin-top: 34px; }
.txs { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.txs li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px 8px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.txs a { font-family: var(--mono); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txs .meta { color: var(--muted); white-space: nowrap; }
.give p { color: #cfcfcf; margin: 0 0 10px; }
.addr { display: block; background: #0e0e0e; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; word-break: break-all; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; border-top: 1px solid var(--line); padding-top: 26px; }
.about p { color: #c4c4c4; font-size: 15px; margin: 0 0 8px; }

footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 24px 26px; max-width: 980px; width: 100%; margin: 0 auto; font-size: 13px; border-top: 1px solid #161616; }

@media (max-width: 640px) {
  .row { flex-direction: column; }
  .facts { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
  .xlink span { display: none; }
}
