/* sponsor.html animations, 3D and extra features (sponsor-fx.js, founder 2026-10-08). Uses the site's light/dark theme
   tokens (--surface, --text, --border, --accent, --gold); the globe panel is always night-sky dark. */

/* Header: rising hearts behind the title, shining title */
.spx-head { position: relative; overflow: hidden; isolation: isolate; }
.spx-sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.spx-head h1 { background: linear-gradient(90deg, var(--text) 0%, var(--accent-2) 30%, var(--text) 50%, var(--gold) 70%, var(--text) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: spxShine 8s linear infinite; }
@keyframes spxShine { to { background-position: -220% 0; } }

/* 3D tilt with a light sheen */
.spx-tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .25s ease, box-shadow .25s ease, opacity .6s ease; position: relative; }
/* Cards that scroll in (.reveal) keep their rise-in until they are shown. */
.reveal.spx-tilt:not(.is-visible) { transform: translateY(24px); }
.spx-tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, #fff 14%, transparent), transparent 45%); opacity: 0; transition: opacity .25s; }
.spx-tilt:hover::after { opacity: 1; }

/* Where your support goes */
.spx-reach { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0; margin: 0 0 64px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(70,140,255,.25);
  background: radial-gradient(80% 120% at 0% 0%, rgba(34,211,238,.12), transparent 60%), radial-gradient(80% 120% at 100% 100%, rgba(217,70,239,.12), transparent 60%), #050d24; color: #eef3ff; box-shadow: var(--shadow); }
.spx-reach-tx { padding: 34px 32px; }
.spx-reach h2 { margin: 12px 0 6px; font-size: clamp(1.5rem, 2.6vw, 2rem); color: #fff; }
.spx-reach-lead { margin: 0 0 18px; color: #a9bbdf; }
.spx-live { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #34d399; border: 1px solid rgba(52,211,153,.35); background: rgba(52,211,153,.08); }
.spx-live i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; animation: spxPulse 1.6s infinite; }
@keyframes spxPulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.spx-reach-nums { display: flex; gap: 28px; margin: 0 0 18px; }
.spx-reach-nums strong { display: block; font: 700 2.2rem/1 var(--font-head); color: #fff; font-variant-numeric: tabular-nums; }
.spx-reach-nums span { font-size: .84rem; color: #a9bbdf; }
.spx-ctry { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.spx-ctry li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; font-size: .88rem; animation: spxIn .6s ease both; animation-delay: calc(var(--i) * 80ms + .2s); }
.spx-ctry b { font-variant-numeric: tabular-nums; color: #fff; }
.spx-ctry i { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.07); position: relative; overflow: hidden; }
.spx-ctry i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, #22d3ee, #8b5cf6, #ec4899); transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
@keyframes spxIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.spx-note { margin: 16px 0 0; font-size: .76rem; color: #7d8fb6; }
.spx-globe { position: relative; min-height: 440px; }
.spx-globe .sa-globe { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; }
.spx-globe .sa-globe.is-drag { cursor: grabbing; }
.spx-globe .sa-gtip { position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 12px)); padding: 6px 10px; font-size: .78rem; font-weight: 600; white-space: nowrap; color: #fff; background: rgba(4,11,31,.92); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; pointer-events: none; }
.spx-globe-hint { position: absolute; right: 14px; bottom: 12px; z-index: 2; font-size: .72rem; color: #6f7fa6; }

/* Choose a gift */
.spx-gift { margin: 0 0 22px; }
.spx-gift-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.spx-gift-head h3 { margin: 0; font-size: 1.3rem; }
.spx-cur { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.spx-cur button { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--text-muted); font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; }
.spx-cur button[aria-pressed="true"] { color: #fff; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.spx-tiers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; perspective: 1000px; }
.spx-tier { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 16px; text-align: left; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; box-shadow: var(--shadow);
  animation: spxFlipIn .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 90ms); }
@keyframes spxFlipIn { from { opacity: 0; transform: perspective(900px) rotateY(-70deg) translateY(10px); } to { opacity: 1; transform: none; } }
.spx-tier strong { font: 700 1.45rem/1.1 var(--font-head); }
.spx-tier > span:not(.spx-tier-ic) { font-size: .82rem; color: var(--text-muted); line-height: 1.4; }
.spx-tier-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: #3b2300; background: radial-gradient(circle at 32% 28%, #fff7c2, #f5b82e 50%, #c2780a); box-shadow: 0 8px 18px -8px rgba(245,184,46,.9); }
.spx-tier-ic svg { width: 18px; height: 18px; }
.spx-tier:hover { border-color: color-mix(in srgb, var(--gold) 60%, var(--border)); }
.spx-tier.is-on { border-color: var(--gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 45%, transparent), 0 18px 36px -18px rgba(245,184,46,.8); }
.spx-tier.is-on .spx-tier-ic { animation: spxCoin 1s cubic-bezier(.3,.7,.3,1.2); }
@keyframes spxCoin { from { transform: rotateY(0); } to { transform: rotateY(720deg); } }
.spx-tier.is-other .spx-tier-ic { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: none; }
.spx-gift-note { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--radius-md); font-size: .9rem; color: var(--text); background: color-mix(in srgb, var(--gold) 10%, transparent); border: 1px dashed color-mix(in srgb, var(--gold) 50%, transparent); animation: spxIn .4s ease both; }
.spx-gift-note a { color: var(--accent-2); font-weight: 700; }
.sp-method.spx-pick { border-color: var(--gold) !important; box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 40%, transparent); }
.sp-method.spx-flash { animation: spxFlash 1.6s ease; }
@keyframes spxFlash { 0%, 100% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 40%, transparent); } 30% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 55%, transparent), 0 0 40px rgba(245,184,46,.5); } }

/* Supporters wall */
.spx-wall { margin: 28px 0; padding: 28px; border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, #ec4899 30%, var(--border)); background: radial-gradient(600px 300px at 100% 0%, color-mix(in srgb, #ec4899 12%, transparent), transparent 70%), var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.spx-wall-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.spx-wall-head h3 { margin: 0; font-size: 1.3rem; }
.spx-wall-head p { margin: 2px 0 0; color: var(--text-muted); font-size: .9rem; }
.spx-wall-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #ec4899, #8b5cf6); box-shadow: 0 10px 22px -10px rgba(236,72,153,.9); animation: spxBeat 1.8s ease-in-out infinite; }
.spx-wall-ic svg { width: 22px; height: 22px; }
@keyframes spxBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(.98); } 45% { transform: scale(1.06); } }
.spx-wall-stats { display: flex; gap: 24px; margin-left: auto; }
.spx-wall-stats strong { display: block; font: 700 1.6rem/1 var(--font-head); font-variant-numeric: tabular-nums; }
.spx-wall-stats span { font-size: .76rem; color: var(--text-muted); }
.spx-ring-stage { position: relative; height: 210px; margin-top: 18px; perspective: 1100px; }
.spx-ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; animation: spxRing 30s linear infinite; }
.spx-ring-stage:hover .spx-ring { animation-play-state: paused; }
@keyframes spxRing { from { transform: rotateX(-8deg) rotateY(0deg); } to { transform: rotateX(-8deg) rotateY(360deg); } }
.spx-chip { position: absolute; left: -80px; top: -42px; width: 160px; padding: 12px 14px; border-radius: 16px; text-align: center; transform: rotateY(var(--a)) translateZ(var(--R, 260px)); backface-visibility: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 22%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--border)); box-shadow: 0 14px 30px -16px rgba(245,184,46,.7); }
.spx-chip strong { display: block; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spx-chip span { font-size: .82rem; color: var(--text-muted); }
.spx-chip-ic { display: inline-grid !important; place-items: center; width: 26px; height: 26px; margin-bottom: 4px; border-radius: 50%; color: #fff !important; background: linear-gradient(135deg, #ec4899, #f5b82e); }
.spx-chip-ic svg { width: 14px; height: 14px; }
.spx-ring-stage.is-flat { height: auto; perspective: none; }
.spx-ring-stage.is-flat .spx-ring { position: static; width: auto; height: auto; animation: none; display: flex; flex-wrap: wrap; gap: 10px; transform: none; }
.spx-ring-stage.is-flat .spx-chip { position: static; transform: none; }
.spx-ring-stage.is-empty { height: auto; perspective: none; }
.spx-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 18px 10px 4px; }
.spx-empty strong { font: 700 1.2rem var(--font-head); }
.spx-empty p { margin: 0 0 6px; max-width: 520px; color: var(--text-muted); font-size: .92rem; }
.spx-empty-coin { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; color: #3b2300; background: radial-gradient(circle at 32% 28%, #fff7c2, #f5b82e 48%, #b45309); border: 2px solid #fde68a; box-shadow: 0 0 30px rgba(245,184,46,.5); animation: spxSpin 4s cubic-bezier(.45,0,.55,1) infinite; }
.spx-empty-coin svg { width: 32px; height: 32px; }
@keyframes spxSpin { 0%, 35% { transform: rotateY(0); } 65%, 100% { transform: rotateY(360deg); } }

/* Questions and answers */
.spx-faq { max-width: 860px; margin: 56px auto 0; }
/* The page runs full width above 1240px (see sponsor.css); a fixed 860px FAQ looked stranded in the
   middle of it. Still well short of the full width, because a question list is read top to bottom and
   long lines make that harder. Lives here, next to the rule it overrides, because sponsor-fx.css loads
   after sponsor.css and a media query adds no specificity to win from there. */
@media (min-width: 1240px) { .spx-faq { max-width: min(calc(100% - 240px), 1180px); } }
.spx-faq h3 { text-align: center; font-size: 1.5rem; margin: 0 0 18px; }
.spx-q { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); margin: 0 0 10px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.spx-q[open] { border-color: color-mix(in srgb, var(--accent-2) 50%, var(--border)); box-shadow: 0 14px 30px -20px color-mix(in srgb, var(--accent-2) 70%, transparent); }
.spx-q summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; font-weight: 700; list-style: none; }
.spx-q summary::-webkit-details-marker { display: none; }
.spx-q summary i { position: relative; flex-shrink: 0; width: 16px; height: 16px; }
.spx-q summary i::before, .spx-q summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; border-radius: 2px; background: var(--accent-2); transition: transform .3s; }
.spx-q summary i::after { transform: rotate(90deg); }
.spx-q[open] summary i::after { transform: rotate(0); }
.spx-a { padding: 0 18px 16px; color: var(--text-muted); line-height: 1.6; animation: spxIn .35s ease both; }
.spx-a p { margin: 0; }
.spx-a a { color: var(--accent-2); font-weight: 700; }

/* Share this page */
.spx-share { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.spx-share-t { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.spx-share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.spx-sh { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .85rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s, border-color .2s; }
.spx-sh:hover { transform: translateY(-2px); border-color: var(--accent-2); }
.spx-sh svg { width: 16px; height: 16px; color: var(--accent-2); }

/* Give now (phones) */
.spx-givenow { display: none; }
@media (max-width: 640px) {
  .spx-givenow { display: inline-flex; align-items: center; gap: 8px; position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 930; height: 46px; padding: 0 22px; border: 0; border-radius: 999px; color: #fff; font: inherit; font-weight: 800;
    background: linear-gradient(90deg, #ec4899, #f59e0b); box-shadow: 0 14px 30px -10px rgba(236,72,153,.8); transform: translate(-50%, 140%); opacity: 0; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s; cursor: pointer; }
  .spx-givenow svg { width: 18px; height: 18px; }
  .spx-givenow.is-on { transform: translate(-50%, 0); opacity: 1; }
  html.taa-app .spx-givenow { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* Hearts burst + confetti */
.spx-heart { position: fixed; z-index: 3000; width: 16px; height: 16px; margin: -8px 0 0 -8px; pointer-events: none; animation: spxBurst .95s cubic-bezier(.2,.7,.2,1) forwards; }
.spx-heart svg { width: 16px; height: 16px; fill: currentColor; }
@keyframes spxBurst { from { transform: translate(0, 0) scale(.4); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(1.1); opacity: 0; } }
.spx-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 3000; pointer-events: none; }

@media (max-width: 1000px) { .spx-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .spx-reach { grid-template-columns: 1fr; } .spx-globe { min-height: 340px; } }
@media (max-width: 640px) {
  .spx-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .spx-tier strong { font-size: 1.2rem; }
  .spx-reach-tx { padding: 24px 20px; } .spx-wall { padding: 20px; } .spx-wall-stats { margin-left: 0; width: 100%; }
  .spx-ring-stage { height: auto; perspective: none; } .spx-ring { position: static; width: auto; height: auto; animation: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; transform: none; }
  .spx-chip { position: static; width: auto; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .spx-head h1 { animation: none; color: var(--text); background: none; }
  .spx-tier, .spx-ctry li, .spx-a, .spx-gift-note { animation: none; }
  .spx-ring { animation: none; } .spx-wall-ic, .spx-empty-coin, .spx-live i, .sp-method.spx-flash { animation: none; }
}
/* Top visitor countries, busiest first (2026-10-08: live visitor countries instead of sign-up bars) */
.spx-top { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.spx-top li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; font-size: .86rem; color: #eef3ff; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); animation: spxIn .5s ease both; animation-delay: calc(var(--i) * 60ms + .2s); }
.spx-top b { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; font-size: .72rem; color: #c7d4f5; background: rgba(255,255,255,.08); }
.spx-top li.is-top { border-color: rgba(245,184,46,.45); background: rgba(245,184,46,.08); }
.spx-top li.is-top b { color: #3b2300; background: radial-gradient(circle at 32% 28%, #fff7c2, #f5b82e 55%, #c2780a); }
@media (prefers-reduced-motion: reduce) { .spx-top li { animation: none; } }
/* Live numbers going up: a green flash and a "+N" floating up */
.spx-reach-nums > div { position: relative; }
.spx-bump { animation: spxBumpN .9s ease; }
@keyframes spxBumpN { 30% { color: #34d399; transform: scale(1.08); text-shadow: 0 0 18px rgba(52,211,153,.6); } }
.spx-reach-nums strong { transform-origin: 0 70%; }
.spx-plus { position: absolute; left: 0; top: -6px; font: 800 .95rem var(--font-head); color: #34d399; pointer-events: none; animation: spxPlus 1.6s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes spxPlus { from { opacity: 0; transform: translateY(6px); } 20% { opacity: 1; } to { opacity: 0; transform: translateY(-26px); } }
@media (prefers-reduced-motion: reduce) { .spx-bump { animation: none; } }
