/* The money rain (public/rain.js): real notes and coins + gift cards tumbling down in three depths behind the page */
.rd-rain { position: absolute; inset: 0; overflow: hidden; pointer-events: none; perspective: 900px; }
.rd-f { position: absolute; top: -200px; will-change: transform; animation: rdFall var(--d) linear var(--w) infinite; }
/* depth: far = small, soft and pale; near = sharp, with a real shadow */
.rd-f.d0 { opacity: .38; filter: blur(2.2px); }
.rd-f.d1 { opacity: .62; filter: blur(.6px); }
.rd-f.d1 > i { --s: .8; }
.rd-f.d2 { opacity: .9; }
.rd-f > i { display: block; font-style: normal; transform-style: preserve-3d; backface-visibility: visible;
  animation: rdTumble var(--t) ease-in-out var(--tw) infinite alternate; }
.rd-f.d0 > i { animation-name: rdTumbleFar; }
/* a note: the real banknote photo, a thin paper edge and a soft shadow */
.rd-note { width: 168px; height: 82px; border-radius: 3px; background: #eee center / cover no-repeat;
  box-shadow: 0 10px 22px rgba(17, 24, 39, .16), 0 1px 2px rgba(17, 24, 39, .12), inset 0 0 0 1px rgba(255,255,255,.45); }
.rd-coin { width: 54px; height: 54px; border-radius: 50%; background: center / cover no-repeat;
  box-shadow: 0 8px 16px rgba(17, 24, 39, .22), inset 0 -2px 4px rgba(0,0,0,.18); }
/* a gift card: glossy gradient, a chip and a ribbon */
.rd-gift { width: 120px; height: 76px; border-radius: 12px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 12px 24px rgba(17, 24, 39, .18), inset 0 0 0 1px rgba(255,255,255,.3); }
.rd-gift::before { content: ''; position: absolute; left: 14px; top: 22px; width: 24px; height: 18px; border-radius: 4px;
  background: linear-gradient(135deg, #fde68a, #d4a017); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.rd-gift::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, transparent 0 62%, rgba(255,255,255,.55) 62% 70%, transparent 70%),
  linear-gradient(115deg, rgba(255,255,255,.35) 0 18%, transparent 40%); }
.rd-ord { height: 42px; padding: 0 14px; line-height: 42px; border-radius: 14px; font-size: 13px; font-weight: 700; color: #0b2a4a;
  direction: rtl; white-space: nowrap; background: rgba(255,255,255,.92);
  box-shadow: 0 10px 22px rgba(10,108,255,.16), inset 0 0 0 1px rgba(10,108,255,.22); }
@keyframes rdFall { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--dx), calc(100vh + 360px), 0); } }
/* paper falls by tilting and swinging, not by spinning like a wheel */
@keyframes rdTumble {
  0% { transform: scale(var(--s, 1)) rotateZ(var(--z0)) rotateX(18deg) rotateY(-24deg); }
  50% { transform: scale(var(--s, 1)) rotateZ(calc(var(--z0) + 14deg)) rotateX(-12deg) rotateY(20deg) translateX(18px); }
  100% { transform: scale(var(--s, 1)) rotateZ(calc(var(--z0) - 10deg)) rotateX(26deg) rotateY(-8deg) translateX(-14px); }
}
@keyframes rdTumbleFar {
  from { transform: scale(.55) rotateZ(var(--z0)) rotateX(14deg); }
  to { transform: scale(.55) rotateZ(calc(var(--z0) + 18deg)) rotateX(-14deg) translateX(12px); }
}
@media (max-width: 700px) { .rd-note { width: 140px; height: 68px; } .rd-gift { width: 100px; height: 64px; } .rd-coin { width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .rd-rain { display: none; } }
/* "who just bought" card (public/proof.js): top right, glass, slides in and out */
#rdProof { position: fixed; top: 74px; right: 14px; z-index: 60; display: flex; align-items: center; gap: 10px; direction: rtl;
  max-width: min(320px, calc(100vw - 28px)); padding: 10px 14px; border-radius: 16px; pointer-events: none;
  background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 12px 30px rgba(17,24,39,.14), inset 0 0 0 1px rgba(255,255,255,.7); color: #111827; font-size: 14px; line-height: 1.45;
  opacity: 0; transform: translateY(-14px) scale(.97); transition: opacity .35s ease, transform .35s ease; }
#rdProof.on { opacity: 1; transform: none; }
#rdProof .rp-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; flex: 0 0 36px;
  background: linear-gradient(135deg, #EEF2FF, #DBEAFE); }
#rdProof small { display: block; color: #6B7280; font-size: 12px; }
@media (max-width: 700px) { #rdProof { top: 66px; right: 10px; font-size: 13px; } }
