:root {
  --paper: #f4eee2;
  --paper-2: #ebe3d3;
  --card: #fbf8f1;
  --ink: #16171c;
  --ink-2: #4b4a47;
  --muted: #8a867d;
  --line: rgba(22, 23, 28, .12);
  --red: #e0262f;
  --red-d: #b5161e;
  --blue: #1d3f9e;
  --blue-d: #142c70;
  --gold: #c9a45c;
  --airmail: repeating-linear-gradient(-45deg, var(--red) 0 14px, transparent 14px 20px, var(--blue) 20px 34px, transparent 34px 40px);
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --r: 18px;
  --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 18px 40px -22px rgba(30, 20, 10, .35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--display); overflow-x: hidden;
  background-image: radial-gradient(rgba(120, 90, 40, .06) 1px, transparent 1px);
  background-size: 22px 22px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--red); letter-spacing: -.01em; }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }
::selection { background: var(--red); color: #fff; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--red); display: grid; place-items: center; align-content: center; gap: 22px; }
.loader-mark { width: 96px; border-radius: 26px; box-shadow: 0 0 0 4px #fff, 0 24px 40px -14px rgba(0,0,0,.4); }
.loader-bar { width: 120px; height: 3px; background: rgba(255,255,255,.25); border-radius: 3px; overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: #fff; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1180px, calc(100% - 24px)); display: flex; align-items: center; gap: 18px;
  padding: 10px 10px 10px 16px; border-radius: 999px;
  background: rgba(251, 248, 241, .78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--line); box-shadow: 0 10px 30px -18px rgba(0,0,0,.35);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 24px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 16px; letter-spacing: -.01em;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, background .2s;
  will-change: transform;
}
.btn:hover { box-shadow: 0 12px 24px -12px rgba(0,0,0,.45); }
.btn:active { transform: scale(.96); }
.btn-red { --bg: var(--red); box-shadow: 0 2px 0 var(--red-d), 0 10px 24px -12px rgba(224,38,47,.8); }
.btn-red:hover { --bg: #ea2f38; }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { --bg: var(--ink); --fg: #fff; }
.btn-sm { padding: 10px 16px; font-size: 14.5px; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------- layout ---------- */
section { position: relative; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 120px 0 40px; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.kicker { font: 600 12.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0 0 18px; }
h2 { font-size: clamp(36px, 5.4vw, 68px); line-height: 1; letter-spacing: -.035em; font-weight: 800; margin: 0; }
h2 .w { display: inline-block; }
.section-sub { color: var(--ink-2); margin: 18px 0 0; max-width: 560px; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; padding-top: 110px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font: 600 12.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 26px; }
.eyebrow .dash { width: 34px; height: 2px; background: var(--red); }
.hero-title { font-size: clamp(54px, 8.4vw, 124px); line-height: .9; letter-spacing: -.055em; font-weight: 800; margin: 0 0 28px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .ch { display: inline-block; will-change: transform; }
.hero-title em { font-size: 1.08em; letter-spacing: -.03em; }
.hero-sub { font-size: 18.5px; color: var(--ink-2); max-width: 520px; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 0; margin: 0; border-top: 1px solid var(--line); padding-top: 22px; max-width: 520px; }
.hero-stats div { flex: 1; padding-right: 18px; }
.hero-stats div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.hero-stats dt { font: 600 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.hero-stats dd { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

.hero-art { position: relative; display: grid; place-items: center; }
.coin-stage { position: relative; width: min(560px, 100%); aspect-ratio: 1; }
.coin-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; z-index: 2; }
.coin-canvas:active { cursor: grabbing; }
.coin-shadow { position: absolute; left: 50%; bottom: 4%; width: 46%; height: 7%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 20, 10, .32), transparent); filter: blur(4px); z-index: 1; }
.coin-hint { font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 6px 0 0; }
.postmark { position: absolute; top: 2%; right: 0; width: 34%; opacity: .7; transform: rotate(-14deg); z-index: 0; }
.postmark svg { width: 100%; }
.postmark circle { fill: none; stroke: var(--blue); stroke-width: 2.4; }
.postmark text { font: 700 11px var(--mono); letter-spacing: .18em; fill: var(--blue); }
.postmark .pm-mid { font-size: 18px; letter-spacing: .1em; }
.tag { position: absolute; z-index: 3; padding: 9px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; box-shadow: var(--shadow); white-space: nowrap; }
.tag-a { top: 14%; left: 0; }
.tag-b { top: 52%; left: -4%; }
.tag-c { top: 22%; right: -2%; }
.tag-d { bottom: 16%; right: 4%; }

/* ---------- ribbon ---------- */
.ribbon { position: relative; margin: 40px 0 0; padding: 10px 0; background: var(--card); transform: rotate(-1.4deg); border-block: 1px solid var(--line); overflow: hidden; }
.ribbon::before, .ribbon::after { content: ''; position: absolute; left: 0; right: 0; height: 8px; background: var(--airmail); }
.ribbon::before { top: 0; } .ribbon::after { bottom: 0; }
.ribbon-track { display: flex; gap: 28px; width: max-content; padding: 18px 0; animation: marquee 38s linear infinite; font-size: clamp(22px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; }
.ribbon-track i { font-style: normal; color: var(--red); }
.ribbon-track span:nth-of-type(3n) { font-family: var(--serif); font-style: italic; text-transform: none; font-weight: 400; color: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- how ---------- */
.how-route { position: absolute; left: 0; right: 0; top: 330px; width: 100%; height: 160px; pointer-events: none; }
.how-route path { stroke: var(--blue); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; opacity: .55; }
.plane-runner { position: absolute; left: 0; top: 0; font-size: 28px; color: var(--red); pointer-events: none; z-index: 2; opacity: 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 1; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 26px; box-shadow: var(--shadow); }
.step-stamp {
  position: relative; width: 92px; height: 108px; margin-bottom: 22px; display: grid; place-items: center;
  background: var(--red); color: #fff; border-radius: 6px;
  padding: 6px; background-clip: border-box;
  -webkit-mask: radial-gradient(circle 4.5px, #0000 96%, #000) -6.5px -6.5px / 13px 13px round, linear-gradient(#000 0 0) content-box;
          mask: radial-gradient(circle 4.5px, #0000 96%, #000) -6.5px -6.5px / 13px 13px round, linear-gradient(#000 0 0) content-box;
}
.step:nth-child(2n) .step-stamp { background: var(--blue); }
.step-n { position: absolute; top: 10px; left: 12px; font: 700 12px var(--mono); opacity: .8; }
.step-ico { width: 46px; height: 46px; color: #fff; filter: drop-shadow(0 3px 0 rgba(0,0,0,.18)); }
.step-ico svg { width: 100%; height: 100%; }
.step h3 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 8px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* ---------- charities ---------- */
.charity-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start; }
.globe-wrap { position: sticky; top: 96px; aspect-ratio: 1; border-radius: 50%; }
.globe { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.globe-label { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; min-width: 200px; }
.globe-label b { font-size: 15px; }
.globe-label span { font: 500 12px var(--mono); color: var(--muted); letter-spacing: .04em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 14px; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, transform .25s cubic-bezier(.34,1.56,.64,1); }
.chip:hover { transform: translateY(-2px); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-row { display: flex; gap: 8px; margin-bottom: 20px; }
.search, .select, .input { width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); outline: none; transition: border-color .2s, box-shadow .2s; }
.search:focus, .select:focus, .input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(22,23,28,.07); }
.select { width: auto; min-width: 160px; cursor: pointer; }

.stamp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stamp {
  position: relative; cursor: pointer; text-align: left; border: 0; padding: 9px; background: #fff;
  filter: drop-shadow(0 10px 14px rgba(40, 25, 10, .14));
  -webkit-mask: radial-gradient(circle 4px, #0000 96%, #000) -6px -6px / 12px 12px round, linear-gradient(#000 0 0) content-box;
          mask: radial-gradient(circle 4px, #0000 96%, #000) -6px -6px / 12px 12px round, linear-gradient(#000 0 0) content-box;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.stamp:hover, .stamp.is-on { transform: translateY(-6px) rotate(-1.5deg); }
.stamp-inner { border: 1.5px solid var(--line); padding: 12px 12px 10px; height: 100%; display: flex; flex-direction: column; background: var(--card); }
.stamp[data-region="China"] .stamp-inner { border-color: rgba(224,38,47,.35); }
.stamp[data-region="Africa"] .stamp-inner { border-color: rgba(201,164,92,.6); }
.stamp[data-region="Europe"] .stamp-inner { border-color: rgba(29,63,158,.35); }
.stamp-logo { height: 76px; display: grid; place-items: center; background: #fff; border-radius: 4px; margin-bottom: 10px; padding: 8px; }
.stamp-logo.dark { background: #1b2a4a; }
.stamp-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.stamp-name { font-size: 14.5px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 4px; }
.stamp-local { font-size: 12.5px; color: var(--ink-2); margin-bottom: 4px; }
.stamp-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: end; gap: 6px; font: 500 10.5px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding-top: 8px; }
.stamp-flag { font-size: 20px; line-height: 1; }
.stamp-empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--muted); }

/* ---------- pair (envelope) ---------- */
.envelope { position: relative; background: var(--card); border-radius: 8px; padding: 46px 40px 40px; box-shadow: 0 30px 60px -30px rgba(40, 25, 10, .45), 0 0 0 1px var(--line); overflow: hidden; }
.envelope-edge { position: absolute; inset: 0; pointer-events: none; border: 12px solid transparent; border-image: var(--airmail) 12; }
.env-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; }
.env-left { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field-label { font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.input { font-size: 15px; padding: 16px 18px; }
.coin-check { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--paper); border: 1px dashed var(--line); font-size: 14.5px; }
.coin-check img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--paper-2); }
.coin-check .ok { color: #18794e; font-weight: 700; }
.coin-check .bad { color: var(--red); font-weight: 700; }
.coin-check small { display: block; color: var(--muted); font: 500 12px var(--mono); }
.charity-pick { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); cursor: pointer; text-align: left; min-height: 56px; }
.charity-pick:hover { border-color: var(--ink); }
.charity-pick .pick-row { display: flex; align-items: center; gap: 12px; }
.charity-pick img { width: 44px; height: 32px; object-fit: contain; background: #fff; border-radius: 4px; }
.pledges { display: flex; gap: 8px; flex-wrap: wrap; }
.pledge { flex: 1; min-width: 64px; padding: 14px 0; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 700; cursor: pointer; transition: all .25s cubic-bezier(.34,1.56,.64,1); }
.pledge:hover { transform: translateY(-2px); }
.pledge.is-on { background: var(--red); color: #fff; border-color: var(--red); }
.env-right { display: flex; flex-direction: column; gap: 18px; }
.stamp-slot { align-self: flex-end; width: 116px; height: 136px; border: 2px dashed var(--line); border-radius: 6px; display: grid; place-items: center; text-align: center; font: 600 11px/1.35 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); position: relative; }
.stamp-slot .stamp { position: absolute; inset: -4px; width: auto; }
.stamp-slot .stamp-logo { height: 60px; }
.address-lines { display: flex; flex-direction: column; gap: 0; }
.addr-to { font-family: var(--serif); font-style: italic; font-size: 22px; margin: 0 0 4px; color: var(--ink-2); }
.addr { margin: 0; padding: 10px 0 8px; border-bottom: 1.5px solid var(--line); font-size: 17px; font-weight: 600; min-height: 44px; }
.form-note { margin: 0; color: var(--muted); font-size: 13.5px; }
.form-note.err { color: var(--red); }
.form-note.ok { color: #18794e; }

/* ---------- board ---------- */
.board-list { display: grid; gap: 12px; }
.board-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 56px 20px; border-radius: var(--r); border: 2px dashed var(--line); text-align: center; color: var(--ink-2); }
.empty-stamp img { width: 64px; opacity: .9; }
.board-empty p { margin: 0; }
.row { display: grid; grid-template-columns: 1.4fr 1.4fr .6fr .9fr .9fr auto; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s; }
.row:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.row-coin, .row-charity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row-coin img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: var(--paper-2); }
.row-charity img { width: 48px; height: 32px; object-fit: contain; background: #fff; border-radius: 4px; padding: 2px; }
.row b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row small { display: block; font: 500 11.5px var(--mono); color: var(--muted); letter-spacing: .03em; }
.row .num { font-weight: 800; font-variant-numeric: tabular-nums; }
.row .go { font-size: 20px; color: var(--red); }
.row-head { display: grid; grid-template-columns: 1.4fr 1.4fr .6fr .9fr .9fr auto; gap: 16px; padding: 0 18px; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.row-head span:last-child { width: 20px; }

/* ---------- coin ---------- */
.coin-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; padding: 48px; border-radius: 28px; background: var(--red); color: #fff; position: relative; overflow: hidden; }
.coin-card::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.25); }
.coin-card .kicker { color: rgba(255,255,255,.75); }
.coin-card em { color: #ffe0b8; }
.coin-card p { color: rgba(255,255,255,.88); }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 0; }
.spec dt { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.spec dd { margin: 4px 0 0; font-weight: 700; font-size: 17px; }
.coin-card-r { align-self: end; display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.coin-card .field-label { color: rgba(255,255,255,.75); }
.ca-box { display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(0,0,0,.18); }
.ca-box code { flex: 1; font: 500 14px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-card .btn-red { --bg: #fff; --fg: var(--red); box-shadow: none; }
.coin-card .btn-ghost { --fg: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.coin-card .btn-ghost:hover { --bg: #fff; --fg: var(--red); }
.coin-links { display: flex; gap: 8px; flex-wrap: wrap; }
.fine { font-size: 13px; margin: 0; opacity: .75; }

/* ---------- faq ---------- */
.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--red); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); }

/* ---------- footer ---------- */
.foot { margin-top: 120px; background: var(--ink); color: #e9e4d8; }
.foot-ribbon { height: 12px; background: var(--airmail); background-color: #fff; }
.foot-inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 56px; display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: start; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.foot-brand img { width: 36px; }
.disclaimer { font-size: 13px; color: #a9a497; margin: 0; max-width: 680px; }
.foot-top { font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: #fff; }

/* ---------- sheet + drawer ---------- */
.sheet, .drawer { position: fixed; inset: 0; z-index: 80; background: rgba(22, 23, 28, .45); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.sheet-card { width: min(560px, 100%); max-height: min(720px, 90svh); display: flex; flex-direction: column; gap: 12px; background: var(--paper); border-radius: 22px; padding: 20px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; font-size: 18px; }
.x { border: 0; background: var(--paper-2); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
.sheet-list { overflow: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }
.sheet-group { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 4px 4px; }
.sheet-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; background: var(--card); cursor: pointer; text-align: left; width: 100%; }
.sheet-item:hover { border-color: var(--ink); }
.sheet-item img { width: 52px; height: 36px; object-fit: contain; background: #fff; border-radius: 4px; padding: 2px; flex: none; }
.sheet-item .dark { background: #1b2a4a; }
.sheet-item b { display: block; font-size: 15px; }
.sheet-item small { color: var(--muted); font-size: 12.5px; }
.drawer { place-items: end center; }
.drawer-card { width: min(640px, 100%); background: var(--paper); border-radius: 24px; padding: 28px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); position: relative; }
.drawer-logo { height: 110px; display: grid; place-items: center; background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 20px; border: 1px solid var(--line); }
.drawer-logo.dark { background: #1b2a4a; }
.drawer-logo img { max-height: 100%; max-width: 70%; object-fit: contain; }
.drawer-card h3 { font-size: 30px; letter-spacing: -.03em; margin: 0 0 2px; line-height: 1.05; }
.drawer-card .local { color: var(--ink-2); margin: 0 0 14px; }
.drawer-card .blurb { color: var(--ink-2); margin: 14px 0 20px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.fact { padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.fact.green { background: #e6f4ea; border-color: #b9e0c5; color: #18794e; }
.drawer-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.drawer .x { position: absolute; top: 18px; right: 18px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 90; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; pointer-events: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; min-height: 0; }
  .hero-art { order: -1; }
  .coin-stage { width: min(420px, 92%); }
  .steps { grid-template-columns: 1fr 1fr; }
  .how-route, .plane-runner { display: none; }
  .charity-layout { grid-template-columns: 1fr; }
  .globe-wrap { position: relative; top: 0; width: min(460px, 100%); margin: 0 auto 30px; }
  .env-grid { grid-template-columns: 1fr; }
  .stamp-slot { align-self: flex-start; }
  .coin-card { grid-template-columns: 1fr; padding: 32px 24px; }
  .row, .row-head { grid-template-columns: 1.3fr 1.3fr .8fr auto; }
  .row .hide-m, .row-head .hide-m { display: none; }
  .foot-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .brand { margin-right: auto; }
  section { padding-top: 90px; }
  .stamp-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-stats dd { font-size: 26px; }
  .envelope { padding: 36px 20px 26px; }
  .filter-row { flex-direction: column; }
  .select { width: 100%; }
  .tag { font-size: 12.5px; padding: 7px 11px; }
  .row, .row-head { grid-template-columns: 1fr 1fr auto; }
  .row .hide-s, .row-head .hide-s { display: none; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ribbon-track { animation: none; }
  html { scroll-behavior: auto; }
}

.flag { display: inline-block; width: 1.25em; height: .94em; border-radius: 2px; vertical-align: -.12em; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.stamp-flag .flag { width: 26px; height: 19px; }
.tag .flag, .chip .flag { margin-right: 4px; }

/* ---------- hero globe ---------- */
.globe-stage { position: relative; width: min(620px, 100%); aspect-ratio: 1; margin: 0 auto; }
.globe-glow { position: absolute; inset: -6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(224,38,47,.22), rgba(224,38,47,.08) 70%, transparent); filter: blur(10px); }
.globe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.globe.is-grab { cursor: grabbing; }
.globe.is-pin { cursor: pointer; }
.globe-tip { position: absolute; z-index: 4; transform: translate(-50%, calc(-100% - 22px)); pointer-events: none; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 14px; background: var(--ink); color: #fff; white-space: nowrap; box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); }
.globe-tip::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: var(--ink); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.globe-tip img.tl { width: 42px; height: 30px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; }
.globe-tip b { display: block; font-size: 14px; }
.globe-tip small { display: flex; align-items: center; gap: 6px; font: 500 11.5px var(--mono); color: #c9c4b8; }
.globe-label { position: relative; margin: 10px auto 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; width: max-content; max-width: 100%; }
.globe-label b { font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.globe-label span { font: 500 12px var(--mono); color: var(--muted); letter-spacing: .04em; }
.globe-label b span { font: inherit; color: inherit; letter-spacing: 0; }
.charity-layout { grid-template-columns: 1fr; }
.stamp-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .stamp-grid { grid-template-columns: repeat(3, 1fr); } .globe-stage { width: min(500px, 100%); } }
@media (max-width: 760px) { .stamp-grid { grid-template-columns: 1fr 1fr; } }
.hero-art .globe-label { left: auto; bottom: auto; transform: none; }
.stamp-logo { overflow: hidden; }
.stamp-logo img { width: auto; height: auto; max-height: 60px; max-width: 100%; }
.stamp-slot .stamp-logo img { max-height: 44px; }
/* flags inside logo-sized image slots keep flag size */
.charity-pick img.flag, .sheet-item img.flag, .row-charity img.flag, .globe-tip img.flag, .drawer-card img.flag { width: 1.25em; height: .94em; padding: 0; background: none; border-radius: 2px; display: inline-block; vertical-align: -.12em; }
.stamp-slot { width: 150px; height: 178px; }
.stamp-slot .stamp-meta, .stamp-slot .stamp-local { display: none; }
.stamp-slot .stamp-logo { height: 92px; }
.stamp-slot .stamp-logo img { max-height: 76px; }
.stamp-slot .stamp-name { font-size: 13px; }

/* ---------- launch / pair mode ---------- */
.mode { position: relative; display: inline-flex; gap: 0; padding: 5px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); margin-bottom: 18px; box-shadow: var(--shadow); max-width: 100%; }
.mode-btn { position: relative; z-index: 1; border: 0; background: none; padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 14.5px; cursor: pointer; color: var(--ink-2); transition: color .3s; white-space: nowrap; }
.mode-btn.is-on { color: #fff; }
.mode-pill { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: var(--ink); z-index: 0; }
.launch-fields, .pair-fields { display: flex; flex-direction: column; gap: 10px; }
.launch-row { display: flex; gap: 10px; }
.img-drop { flex: none; width: 112px; height: 112px; border-radius: 16px; border: 2px dashed var(--line); display: grid; place-items: center; cursor: pointer; overflow: hidden; background: var(--paper); font: 600 13px var(--mono); color: var(--muted); transition: border-color .2s, transform .3s cubic-bezier(.34,1.56,.64,1); }
.img-drop:hover { border-color: var(--red); transform: rotate(-2deg); }
.img-drop img { width: 100%; height: 100%; object-fit: cover; }
.launch-names { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.launch-names.two { flex-direction: row; }
textarea.input { resize: vertical; min-height: 54px; font: inherit; font-size: 15px; }
.devbuy { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.devbuy span { font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.devbuy .input { border: 0; box-shadow: none !important; padding: 10px 6px; text-align: right; }
.devbuy b { font: 700 13px var(--mono); color: var(--muted); padding-right: 10px; }
@media (max-width: 760px) { .mode-btn { padding: 10px 12px; font-size: 13px; } .launch-names.two { flex-direction: column; } }
.charity-pick > b { font-size: 12px; color: var(--muted); background: none; }
/* globe tooltip (cluster list) */
.globe-tip { flex-direction: column; align-items: stretch; gap: 4px; padding: 10px; min-width: 250px; max-width: 300px; white-space: normal; transform: translate(-50%, calc(-100% - 12px)); }
.globe-tip.is-sticky { pointer-events: auto; }
.gt-head { display: flex; align-items: center; gap: 8px; font: 600 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #c9c4b8; padding: 2px 4px 6px; }
.gt-row { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; border: 0; background: transparent; color: #fff; text-align: left; cursor: pointer; width: 100%; }
.gt-row:hover { background: rgba(255,255,255,.1); }
.gt-row img { width: 40px; height: 28px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; flex: none; }
.gt-row b { display: block; font-size: 13.5px; line-height: 1.2; }
.gt-row small { color: #a9a497; font-size: 11.5px; }
.gt-hint { font: 500 10.5px var(--mono); color: #8a867d; text-align: center; padding-top: 4px; letter-spacing: .06em; text-transform: uppercase; }
.drawer-logo { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.drawer-logo img { max-height: 82px; width: auto; height: auto; }
/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.globe-label b, .globe-label span { will-change: transform, opacity; }
.globe-label .flag { width: 18px; height: 13px; }
.brand img, .foot-brand img { border-radius: 9px; }
.empty-stamp img { border-radius: 16px; }
/* slimmer airmail ribbon */
.ribbon { margin-top: 24px; padding: 5px 0; transform: rotate(-.8deg); }
.ribbon::before, .ribbon::after { height: 5px; background-size: auto; }
.ribbon-track { gap: 18px; padding: 9px 0; font-size: clamp(13px, 1.25vw, 17px); letter-spacing: .02em; }
.ribbon::before, .ribbon::after { display: none; }
/* only-on-CharityPad tags */
.chip-excl { border-color: rgba(224,38,47,.35); color: var(--red); }
.chip-excl.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.stamp-excl { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 3px 7px; border-radius: 999px; background: var(--red); color: #fff; font: 700 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.fact.excl { background: #fde8e9; border-color: #f5b9bc; color: var(--red-d); }
/* request a charity */
.request { margin-top: 56px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; padding: 32px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.request h3 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.035em; line-height: 1; margin: 0 0 10px; }
.req-sub { color: var(--ink-2); margin: 0 0 18px; max-width: 520px; }
.req-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 14px; }
.req-tab { border: 0; background: none; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--ink-2); transition: background .25s, color .25s; }
.req-tab.is-on { background: var(--ink); color: #fff; }
.req-form { display: flex; flex-direction: column; gap: 10px; }
.req-row { display: flex; gap: 8px; }
.req-row .select { min-width: 210px; }
.req-results { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow: auto; }
.req-hit { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.req-hit b { display: block; font-size: 14.5px; text-transform: capitalize; }
.req-hit small { color: var(--muted); font: 500 12px var(--mono); }
.req-hit .btn { flex: none; }
.req-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.req-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; }
.req-list li b { font-weight: 700; text-transform: capitalize; }
.req-list li small { color: var(--muted); font: 500 11.5px var(--mono); display: block; }
.req-list .votes { flex: none; font: 700 12px var(--mono); color: var(--red); }
.req-empty { justify-content: center !important; color: var(--muted); border-style: dashed !important; background: none !important; }
@media (max-width: 900px) { .request { grid-template-columns: 1fr; padding: 22px; } .req-row { flex-direction: column; } .req-row .select { min-width: 0; } }
/* linked-to-charity state on coin pages and the board */
.linked { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px; background: #e6f4ea; color: #18794e; font: 700 12.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.linked i { width: 18px; height: 18px; border-radius: 50%; background: #18794e; color: #fff; display: grid; place-items: center; font-style: normal; font-size: 11px; }
.linked-mini { color: #18794e; font-weight: 700; }
.stamp:active { transform: translateY(-2px) scale(.965); transition-duration: .12s; }
.drawer-card, .sheet-card { will-change: transform; backface-visibility: hidden; }
.charity-pick:active { transform: scale(.98); }
.charity-pick { transition: border-color .2s, transform .25s cubic-bezier(.34,1.56,.64,1); }
