/* VOICE: a 1930s rubber-hose cartoon that still handles money carefully
   IDEA: an old pencil-and-ink cartoon print - cream newsprint, green ink line, halftone, mustard spot colour
   PICTURE: the dancing pickle mascot, with a speech bubble, beside a hand-inked swap card
   COLOUR+TYPE: paper #f6eed6, ink #1c4a28, pickle #9cc540, mustard #f1c232; Luckiest Guy + Patrick Hand + Courier Prime
   LAYOUT: header, hero (title + mascot | card), networks strip, inked "how" band, FAQ, terms, footer */
:root {
  color-scheme: light;
  --paper: #f6eed6; --paper2: #fbf6e6; --card: #fffaf0; --shade: #ece2c4;
  --ink: #1c4a28; --ink2: #2b5e36; --ink-soft: #3d6446; --mute: #56684f; --faint: #6b765f;
  --pickle: #9cc540; --pickle-hi: #c6df72; --pickle-lo: #6e9a2a; --mustard: #f1c232; --mustard-lo: #d9a514;
  --bad: #b3341f; --bad-bg: #fbe3d8; --warn: #7d5200; --warn-bg: #fdf0c4; --ok: #24702e;
  --line: 2.5px;
  --wob: 255px 18px 225px 18px / 18px 225px 18px 255px;
  --wob2: 18px 225px 18px 255px / 255px 18px 225px 18px;
  --title: "Luckiest Guy", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --hand: "Patrick Hand", "Comic Sans MS", "Chalkboard SE", "Segoe Print", system-ui, sans-serif;
  --type: "Courier Prime", "Courier New", ui-monospace, monospace;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .15 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --dots: radial-gradient(circle, rgba(28, 74, 40, .16) 1.1px, transparent 1.4px);
  --scribble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9c30-6 60-5 90-3s70 3 100-2 32-1 44 1M8 12c40-4 90-5 140-2' fill='none' stroke='%23f1c232' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; min-width: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; color: var(--ink); font: 19px/1.45 var(--hand); overflow-x: clip;
  background: var(--grain), var(--paper); }
h1, h2, h3 { font-family: var(--title); font-weight: 400; line-height: 1; margin: 0; letter-spacing: .01em; text-wrap: balance; }
a { color: var(--ink2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; border-radius: 6px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
.inner { width: min(1160px, calc(100% - clamp(36px, 9vw, 120px))); margin-inline: auto; }

/* Pencil outline: drawn on a pseudo-element so only the line wobbles, never the text. */
.sketch, .card, .box, .token-btn, .nav-btn, .cta, .copy, .btn-sm, .ghost, .seg button, .chip, .dlg, .send, .details, .settings, .timer, .tk-item[aria-selected="true"] { position: relative; }
.card::before, .box::before, .send::before, .dlg::before, .cta::before, .nav-btn::before, .copy::before, .btn-sm::before, .ghost::before, .token-btn::before {
  content: ""; position: absolute; inset: 0; border: var(--line) solid var(--ink); border-radius: inherit; pointer-events: none; filter: url(#pencil); }

/* ---------- Header ---------- */
.top { position: relative; background: transparent; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 84px; border-bottom: var(--line) solid var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 34px/1 var(--title); color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.brand .suffix { color: var(--pickle-lo); }
.brand .logo { width: 40px; height: 40px; transform: rotate(-8deg); }
.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); font-size: 21px; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover { text-decoration: underline wavy var(--pickle-lo) 2px; text-underline-offset: 6px; }
.nav-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 18px; min-height: 46px; border-radius: var(--wob); border: 0; background: var(--card); font-size: 20px;
  box-shadow: 3px 4px 0 var(--ink); transition: transform .1s, box-shadow .1s; }
.nav-btn:hover { background: var(--pickle-hi); }
.nav-btn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.nav-btn svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 80px); padding-block: clamp(32px, 4vw, 60px) clamp(40px, 5vw, 72px); align-items: start; }
.hero-copy { position: relative; padding-top: 4px; }
.hero h1 { max-width: 11ch; font-size: clamp(3rem, 5.6vw, 4.9rem); color: var(--ink); line-height: .95;
  text-shadow: 3px 3px 0 var(--pickle-hi), 5px 5px 0 rgba(28, 74, 40, .25); }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: -4px; right: -6px; bottom: -.12em; height: .28em; background: var(--scribble) center / 100% 100% no-repeat; z-index: -1; }
.lede { max-width: 34ch; font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.35; margin: 22px 0 4px; color: var(--ink-soft); }
.mascot-wrap { position: relative; width: min(100%, 470px); margin-top: 4px; }
.mascot-wrap::before { content: ""; position: absolute; inset: 10% 8% 4% 10%; background: var(--dots) 0 0 / 9px 9px; border-radius: 50%; opacity: .7; }
.mascot { position: relative; display: block; width: 100%; height: auto; mix-blend-mode: multiply; animation: boil .5s steps(1) infinite; }
@keyframes boil { 0% { filter: url(#boil1); } 33% { filter: url(#boil2); } 66% { filter: url(#boil3); } }
.bubble { position: absolute; right: -2%; top: 60%; max-width: 13ch; padding: 10px 16px; background: var(--card); border-radius: var(--wob2); font: 21px/1.15 var(--hand); text-align: center; transform: rotate(4deg);
  box-shadow: 3px 3px 0 var(--ink); }
.bubble::before { content: ""; position: absolute; inset: 0; border: var(--line) solid var(--ink); border-radius: inherit; filter: url(#pencil); }
.bubble::after { content: ""; position: absolute; left: 16%; top: -11px; width: 20px; height: 20px; background: var(--card);
  border-left: var(--line) solid var(--ink); border-top: var(--line) solid var(--ink); transform: rotate(40deg) skewX(10deg); }

/* ---------- Networks strip ---------- */
.network-band { background: var(--pickle-hi); border-block: var(--line) solid var(--ink);
  background-image: var(--dots); background-size: 8px 8px; }
.networks summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; padding-block: 14px; }
.networks summary::-webkit-details-marker { display: none; }
.networks summary::after { content: "+"; font: 28px/1 var(--title); }
.networks[open] summary::after { content: "–"; }
#netsTitle { font: 24px var(--title); letter-spacing: .02em; }
.net-count { margin-left: auto; font-size: 19px; }
.net-count b { font-family: var(--title); font-weight: 400; }
.nets-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 18px; margin: 0; }
.nets-list li { display: inline-flex; align-items: center; font-size: 17px; background: var(--card); padding: 2px 12px 2px 4px; border-radius: var(--wob); box-shadow: 0 0 0 2px var(--ink); }

/* ---------- Swap card ---------- */
.stage { scroll-margin-top: 16px; }
.card { background: var(--card); border-radius: 30px 22px 34px 20px / 22px 32px 20px 30px; padding: clamp(18px, 2vw, 28px);
  box-shadow: 8px 9px 0 var(--ink); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; }
.card-head h2 { font-size: clamp(1.7rem, 2.4vw, 2.1rem); letter-spacing: .02em; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--ink); }
.icon-btn:hover { background: var(--pickle-hi); }
.icon-btn svg, .flip svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.settings { background: var(--paper2); border-radius: var(--wob2); padding: 12px 14px; margin-bottom: 12px; box-shadow: inset 0 0 0 2px var(--ink); }
.settings-label { font-size: 19px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.seg button { min-height: 42px; border-radius: var(--wob); border: 0; background: var(--card); box-shadow: 0 0 0 2px var(--ink); font-size: 19px; }
.seg button[aria-checked="true"] { background: var(--mustard); box-shadow: 0 0 0 2px var(--ink), 2px 3px 0 var(--ink); }

.box { background: var(--paper2); border-radius: 22px 16px 24px 14px / 16px 24px 14px 22px; padding: 10px 16px 8px; transition: background .15s; }
.box:focus-within { background: #f4f8e2; }
.box-label { display: block; font-size: 18px; color: var(--mute); margin-bottom: 0; }
.box-row { display: flex; align-items: center; gap: 12px; }
.amount { flex: 1; width: 100%; background: transparent; border: 0; outline: 0; font: 46px/1.15 var(--hand); color: var(--ink); padding: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amount::placeholder { color: #a7a98d; }
.amount.out.loading { opacity: .4; }
.box-foot { min-height: 6px; font-size: 17px; color: var(--faint); }

.token-btn { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 14px 6px 6px; border-radius: 999px 900px 999px 950px;
  border: 0; background: var(--card); box-shadow: 3px 3px 0 var(--ink); max-width: 60%; transition: transform .1s, box-shadow .1s, background .15s; }
.token-btn:hover { background: var(--pickle-hi); }
.token-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.token-btn::after { content: ""; width: 8px; height: 8px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg) translateY(-3px); margin-left: 2px; flex: none; }
.tk-loading { padding-left: 10px; color: var(--mute); }
.tk-text { display: grid; text-align: left; line-height: 1.05; }
.tk-sym { font: 22px/1.05 var(--title); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 3px; }
.tk-chain { font-size: 15px; color: var(--mute); white-space: nowrap; }
.coin { position: relative; flex: none; width: 38px; height: 38px; display: block; }
.coin > svg { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 2.5px var(--ink), 2px 2px 0 2.5px var(--ink); }
.coin.lg { width: 42px; height: 42px; }
.coin .badge { position: absolute; right: -4px; bottom: -4px; width: 48%; height: 48%; border-radius: 50%; background: var(--card); padding: 1.5px; box-shadow: 0 0 0 2px var(--ink); }
.coin .badge svg { display: block; width: 100%; height: 100%; }
.chain-ico { display: inline-block; flex: none; width: 22px; height: 22px; margin-right: 6px; }
.chain-ico svg { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--ink); }
.chip { display: inline-flex; align-items: center; }
.chip .chain-ico { width: 18px; height: 18px; }

.flip-wrap { display: grid; place-items: center; height: 10px; position: relative; z-index: 2; }
.flip { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--mustard); border: 0; color: var(--ink);
  box-shadow: 0 0 0 2.5px var(--ink), 2px 3px 0 2.5px var(--ink); transition: transform .3s cubic-bezier(.5, -0.6, .5, 1.6); }
.flip:hover { transform: rotate(180deg); }

.addr { margin-top: 14px; }
.addr label, .track-form label { display: block; font-size: 19px; margin: 0 0 4px 4px; }
.addr input, .track-form input, .search, .form-row input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--wob); border: var(--line) solid var(--ink); background: var(--card); font: 17px var(--type); outline: 0; transition: background .15s, box-shadow .15s; }
.addr input::placeholder, .form-row input::placeholder, .track-form input::placeholder { color: #9a9b80; font-family: var(--hand); font-size: 19px; }
.addr input:focus, .track-form input:focus, .search:focus, .form-row input:focus { background: #fffdf5; box-shadow: 3px 3px 0 var(--pickle); }
.addr input.bad { border-color: var(--bad); background: #fff6f2; }
.addr input.good { border-color: var(--ok); background: #f6fbe9; }
.hint { font-size: 16px; color: var(--faint); margin: 4px 4px 0; }
.hint.bad { color: var(--bad); }

.details { margin: 16px 0 0; padding: 10px 16px; border-radius: var(--wob2); background: var(--paper2); display: grid; gap: 2px; font-size: 18px;
  box-shadow: inset 0 0 0 2px rgba(28, 74, 40, .35); background-image: repeating-linear-gradient(transparent 0 29px, rgba(28, 74, 40, .1) 29px 30px); }
.details div { display: flex; justify-content: space-between; gap: 12px; }
.details dt { color: var(--mute); }
.details dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.details:empty { display: none; }

.err { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--wob2); background: var(--bad-bg); color: var(--bad); font-size: 18px; box-shadow: inset 0 0 0 2px var(--bad); }
.cta { width: 100%; min-height: 60px; margin-top: 16px; border-radius: 20px 28px 18px 30px / 28px 18px 30px 20px; border: 0; background: var(--mustard); color: var(--ink);
  font: 26px/1 var(--title); letter-spacing: .03em; padding-top: 4px; box-shadow: 5px 6px 0 var(--ink); transition: transform .1s, box-shadow .1s, background .15s; }
.cta:hover:not(:disabled) { background: #f7cf4c; }
.cta:active:not(:disabled) { transform: translate(4px, 5px); box-shadow: 1px 1px 0 var(--ink); }
.cta:disabled { background: var(--shade); color: #6d7460; box-shadow: 3px 3px 0 rgba(28, 74, 40, .35); cursor: default;
  background-image: repeating-linear-gradient(-45deg, transparent 0 7px, rgba(28, 74, 40, .07) 7px 9px); }
.cta:disabled::before { border-color: rgba(28, 74, 40, .45); }
.fine { font-size: 15px; color: var(--faint); text-align: center; margin: 12px 0 0; }

/* ---------- Deposit ---------- */
.timer { white-space: nowrap; flex: none; font: 17px var(--type); font-weight: 700; color: var(--ink); background: var(--mustard); padding: 5px 12px; border-radius: var(--wob); box-shadow: 0 0 0 2px var(--ink); }
.timer.late { color: #fff; background: var(--bad); }
.send { display: flex; gap: 16px; align-items: center; background: var(--paper2); border-radius: 22px 16px 24px 14px / 16px 24px 14px 22px; padding: 14px; }
.qr { flex: none; width: 160px; height: 160px; background: #fff; border-radius: 10px; padding: 2px; box-shadow: 0 0 0 2.5px var(--ink), 3px 3px 0 2.5px var(--ink); }
.qr svg { display: block; width: 100%; height: 100%; }
.send-info { display: grid; gap: 0; justify-items: start; }
.send-amt b { font: 34px/1.05 var(--title); font-weight: 400; overflow-wrap: anywhere; letter-spacing: .02em; }
.send-chain { color: var(--mute); font-size: 18px; }
.copy.small { margin-top: 8px; min-height: 40px; min-width: 0; }
.dep-addr { margin-top: 14px; }
.code-row { display: flex; gap: 10px; align-items: stretch; }
.code-row code { flex: 1; font: 700 17px/1.4 var(--type); padding: 12px 14px; border-radius: var(--wob); background: #fff; border: var(--line) solid var(--ink); overflow-wrap: anywhere; user-select: all; }
.copy, .btn-sm { flex: none; min-width: 84px; min-height: 48px; padding: 2px 16px 0; border-radius: var(--wob2); border: 0; background: var(--pickle); color: var(--ink); font: 20px var(--title); letter-spacing: .03em;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .1s, box-shadow .1s; }
.copy:hover, .btn-sm:hover { background: var(--pickle-hi); }
.copy:active, .btn-sm:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.memo code { background: var(--warn-bg); }
.warn { font-size: 17px; color: var(--warn); background: var(--warn-bg); padding: 10px 14px; border-radius: var(--wob2); margin: 12px 0 0; box-shadow: inset 0 0 0 2px #c99a1b; }
.warn:empty { display: none; }
.expired .code-row code, .expired .qr { text-decoration: line-through; opacity: .35; user-select: none; }
.expired .copy { opacity: .4; }

.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.steps li { display: grid; gap: 6px; font-size: 16px; line-height: 1.15; color: var(--faint); }
.steps .dot { height: 12px; border-radius: 10px 4px 10px 4px; background: var(--card); box-shadow: 0 0 0 2px rgba(28, 74, 40, .4); }
.steps li.done { color: var(--ink-soft); }
.steps li.done .dot { background: var(--pickle) repeating-linear-gradient(-45deg, transparent 0 4px, rgba(28, 74, 40, .25) 4px 5.5px); box-shadow: 0 0 0 2px var(--ink); }
.steps li.now { color: var(--ink); }
.steps li.now .dot { box-shadow: 0 0 0 2px var(--ink); background: repeating-linear-gradient(-45deg, var(--mustard) 0 6px, var(--card) 6px 12px); background-size: 34px 100%; animation: march 1s linear infinite; }
.steps.bad li.now .dot { background: var(--bad); animation: none; }
@keyframes march { to { background-position: 34px 0; } }
.status-msg { margin: 12px 4px 0; font-size: 20px; }
.status-msg.ok { color: var(--ok); }
.status-msg.bad { color: var(--bad); }
.txs { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: 17px; }
.txs a { font-family: var(--type); overflow-wrap: anywhere; }
.speed { margin-top: 16px; border-top: 2px dashed rgba(28, 74, 40, .45); padding-top: 12px; }
.speed summary { cursor: pointer; color: var(--ink-soft); font-size: 18px; min-height: 32px; }
.form-row { margin-top: 8px; }
.form-row input { flex: 1; }
.dep-actions { display: flex; gap: 12px; margin-top: 18px; }
.ghost { flex: 1; min-height: 52px; border-radius: var(--wob); border: 0; background: var(--card); font: 21px var(--title); letter-spacing: .03em; padding-top: 3px; box-shadow: 3px 3px 0 var(--ink); transition: transform .1s, box-shadow .1s; }
.ghost:hover { background: var(--pickle-hi); }
.ghost:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

/* ---------- Bands ---------- */
.band { padding: clamp(44px, 6vw, 92px) 0; }
.band h2 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); margin-bottom: 30px; }
.band h2 .hl { position: relative; display: inline-block; }
.band h2 .hl::after { content: ""; position: absolute; left: -4px; right: -6px; bottom: -.1em; height: .3em; background: var(--scribble) center / 100% 100% no-repeat; z-index: -1; }
.band.dark { position: relative; background: var(--ink); color: var(--paper); isolation: isolate;
  background-image: radial-gradient(circle, rgba(246, 238, 214, .08) 1.2px, transparent 1.6px); background-size: 10px 10px; }
.band.dark::before, .band.dark::after { content: ""; position: absolute; left: 0; right: 0; height: 18px; background: var(--ink);
  -webkit-mask: radial-gradient(14px 10px at 50% 100%, #000 98%, transparent) 0 0 / 34px 18px repeat-x; mask: radial-gradient(14px 10px at 50% 100%, #000 98%, transparent) 0 0 / 34px 18px repeat-x; }
.band.dark::before { top: -17px; }
.band.dark::after { bottom: -17px; transform: scaleY(-1); }
.band.dark h2 { color: var(--paper); }
.band.dark h2 .hl::after { z-index: 0; mix-blend-mode: normal; opacity: .9; }
.band.dark h2 .hl > span { position: relative; z-index: 1; }
.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); }
.how li { position: relative; padding: 24px 22px 26px; background: rgba(246, 238, 214, .05); border-radius: 24px 14px 26px 16px / 16px 26px 14px 24px; }
.how li::before { content: ""; position: absolute; inset: 0; border: var(--line) solid rgba(246, 238, 214, .75); border-radius: inherit; filter: url(#pencil); pointer-events: none; }
.how li:nth-child(2) { transform: rotate(.6deg); }
.how li:nth-child(3) { transform: rotate(-.5deg); }
.how h3 { font-size: 27px; margin: 16px 0 8px; color: var(--mustard); letter-spacing: .02em; }
.how p { color: #e5ddc2; margin: 0; font-size: 19px; }
.num { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--mustard); color: var(--ink); font: 28px/1 var(--title); padding-top: 4px;
  box-shadow: 0 0 0 2.5px var(--paper), 3px 3px 0 2.5px rgba(246, 238, 214, .5); transform: rotate(-6deg); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 72px); }
.faq details { border-bottom: 2px dashed rgba(28, 74, 40, .5); }
.faq details:first-child { border-top: 2px dashed rgba(28, 74, 40, .5); }
.faq summary { cursor: pointer; padding: 18px 4px; font: 22px/1.25 var(--hand); list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--card);
  font: 26px/1 var(--title); padding-top: 4px; box-shadow: 0 0 0 2px var(--ink), 2px 2px 0 2px var(--ink); transition: transform .2s; }
.faq details[open] summary::after { content: "–"; background: var(--mustard); transform: rotate(180deg); }
.faq p { color: var(--ink-soft); margin: 0 4px 20px; max-width: 60ch; font-size: 19px; }
.terms { background: var(--shade); background-image: var(--grain); border-top: var(--line) solid var(--ink); }
.terms h2 { font-size: 30px; margin-bottom: 10px; }
.terms p { color: var(--ink-soft); font-size: 17px; max-width: 86ch; margin: 0; }
.foot { background: var(--ink); color: #cfc7aa; font-size: 18px; padding: 30px 0 38px; }
.foot-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.brand.small { color: var(--paper); font-size: 26px; }
.brand.small .logo { width: 30px; height: 30px; }

/* ---------- Dialogs ---------- */
.dlg { width: min(470px, calc(100vw - 24px)); max-height: min(700px, calc(100vh - 40px)); padding: 20px; border-radius: 28px 20px 30px 18px / 20px 30px 18px 28px; border: 0;
  background: var(--grain), var(--card); color: var(--ink); box-shadow: 8px 9px 0 var(--ink); overflow: visible; }
.dlg[open] { display: flex; flex-direction: column; animation: pop .25s cubic-bezier(.3, 1.6, .5, 1); }
.dlg::backdrop { background: rgba(28, 74, 40, .45); background-image: radial-gradient(circle, rgba(28, 74, 40, .35) 1.2px, transparent 1.6px); background-size: 7px 7px; }
@keyframes pop { from { transform: scale(.85) rotate(-2deg); opacity: 0; } }
.dlg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dlg-head h2 { font-size: 28px; padding-top: 4px; }
.search { font-family: var(--hand) !important; font-size: 20px !important; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 4px; scrollbar-width: thin; flex: none; }
.chip { flex: none; min-height: 38px; padding: 0 14px 0 8px; border-radius: var(--wob); border: 0; background: var(--card); font-size: 17px; color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.chip:first-child { padding-left: 14px; }
.chip[aria-pressed="true"] { background: var(--mustard); box-shadow: 0 0 0 2px var(--ink), 2px 2px 0 2px var(--ink); }
.tk-list { list-style: none; margin: 0; padding: 2px 4px; overflow-y: auto; flex: 1; min-height: 200px; }
.tk-item { width: 100%; display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: var(--wob); border: 0; background: transparent; text-align: left; }
.tk-item:hover, .tk-item:focus-visible { background: rgba(156, 197, 64, .2); }
.tk-item[aria-selected="true"] { background: var(--pickle-hi); box-shadow: inset 0 0 0 2px var(--ink); }
.tk-item .tk-text { flex: 1; }
.tk-price { color: var(--ink-soft); font-size: 17px; white-space: nowrap; }
.tk-empty { padding: 24px 8px; color: var(--mute); text-align: center; }
.track-form { display: grid; gap: 2px; }
.track-form input { margin-bottom: 12px; }
.recent-title { font: 22px var(--title); margin: 20px 0 8px; color: var(--ink); }
.recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.recent button { width: 100%; text-align: left; padding: 10px 14px; border-radius: var(--wob2); border: 0; background: var(--paper2); display: grid; gap: 0; box-shadow: 0 0 0 2px var(--ink); font-size: 18px; }
.recent button:hover { background: var(--pickle-hi); }
.recent small { color: var(--faint); font: 14px var(--type); overflow-wrap: anywhere; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px) rotate(-2deg); background: var(--mustard); color: var(--ink); font: 22px var(--title); letter-spacing: .02em;
  padding: 12px 22px 8px; border-radius: var(--wob); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.3, 1.6, .5, 1); z-index: 60;
  box-shadow: 0 0 0 2.5px var(--ink), 4px 4px 0 2.5px var(--ink); }
.toast.show { opacity: 1; transform: translate(-50%, 0) rotate(-2deg); }

/* ---------- Responsive ---------- */
@media (max-width: 790px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 26px; max-width: 580px; }
  .hero-copy { display: grid; grid-template-columns: minmax(0, 1fr) 36%; align-items: center; column-gap: 10px; }
  .hero h1 { font-size: clamp(2.6rem, 8vw, 3.8rem); }
  .mascot-wrap { grid-column: 2; grid-row: 1; width: 100%; }
  .bubble { display: none; }
  .lede { grid-column: 1 / -1; max-width: none; margin-bottom: 0; }
  .how, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .how li:nth-child(n) { transform: none; }
  .nav { gap: 16px; }
}
@media (max-width: 600px) {
  body { font-size: 18px; }
  .top-row { min-height: 70px; }
  .brand { font-size: 28px; }
  .brand .logo { width: 32px; height: 32px; }
  .nav { display: none; }
  .nav-btn { font-size: 18px; padding-inline: 12px; }
  .hero { padding-block: 24px 36px; }
  .hero h1 { font-size: clamp(2.2rem, 10.5vw, 3rem); text-shadow: 2px 2px 0 var(--pickle-hi), 3px 3px 0 rgba(28, 74, 40, .25); }
  .lede { margin-top: 14px; font-size: 1.15rem; }
  .card { box-shadow: 5px 6px 0 var(--ink); padding: 16px 14px; }
  .box { padding-inline: 12px; }
  .amount { font-size: 38px; }
  .token-btn { max-width: 60%; }
  .networks summary { flex-wrap: wrap; gap: 0 10px; }
  .net-count { order: 2; flex-basis: 100%; font-size: 17px; }
  .networks summary::after { margin-left: auto; }
  .send { flex-direction: column; align-items: stretch; text-align: center; }
  .send-info { justify-items: center; }
  .qr { width: 184px; height: 184px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 12px; }
  .code-row { flex-wrap: wrap; }
  .code-row code { flex-basis: 100%; }
  .code-row .copy, .btn-sm { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mascot { filter: none; }
}
