/* The chop (hanko seal): every signature a member makes is stamped in vermilion. */
.chop { display: inline-block; width: var(--chop, 64px); height: auto; color: var(--red); flex: 0 0 auto; }
.chop .ink { fill: currentColor; }
.chop .cut { fill: #fff8ee; font-family: var(--cjk); font-weight: 700; }
.chop .rim { fill: none; stroke: #fff8ee; }

/* The brand mark: a small tall seal with 標會. */
.mark { --chop: 26px; transform: rotate(-3deg); }

/* A stamp landing on paper. Played by adding .press (the app adds it once the wallet returns a signature). */
.stamp-pad { position: relative; display: grid; place-items: center; }
.stamp-pad .chop { opacity: 0; }
.stamp-pad.press .chop { animation: press 0.62s var(--spring) forwards; }
.stamp-pad.press::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 30%;
  background: radial-gradient(closest-side, rgba(207, 58, 36, 0.28), transparent);
  animation: bleed 0.9s ease-out forwards;
  pointer-events: none;
}
@keyframes press {
  0% { opacity: 0; transform: translateY(-14px) scale(1.7) rotate(-14deg); filter: blur(1.5px); }
  55% { opacity: 1; transform: translateY(0) scale(0.94) rotate(-6deg); filter: blur(0); }
  75% { transform: scale(1.03) rotate(-7deg); }
  100% { opacity: 1; transform: scale(1) rotate(-7deg); }
}
@keyframes bleed { from { opacity: 0; transform: scale(0.6); } 40% { opacity: 1; } to { opacity: 0; transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) {
  .stamp-pad.press .chop { animation: fade 0.2s ease forwards; transform: rotate(-7deg); }
  .stamp-pad.press::after { animation: none; display: none; }
  @keyframes fade { to { opacity: 1; } }
}
