.hand-marks, .hand-mark, .hand-chip, .hand-receipt {
  pointer-events: none;
  user-select: none;
}

.hand-marks {
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: inline-size;
}
.hand-mark {
  position: absolute;
  transform: translate(-50%, -100%);
  padding: .12em .45em;
  border-radius: 2px;
  border-bottom: 2px solid var(--stamp-ink, #ffe0a0);
  color: var(--stamp-ink, #ffe0a0);
  background: #33241e;
  box-shadow: 0 1px 4px #160e0bc0;
  font: 700 clamp(12px, 2cqw, 17px)/1.2 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hand-mark::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-bottom: 0;
  border-top-color: var(--stamp-ink, #ffe0a0);
}
.hand-mark[data-group="1"] { --stamp-ink: #b8e2df; }
.hand-marks[data-motion="true"] .hand-mark {
  animation: hand-stamp-in 150ms ease-out;
}
@keyframes hand-stamp-in {
  from { opacity: 0; transform: translate(-50%, calc(-100% - 4px)); }
}

.hand-receipt, .hand-chip { position: fixed; z-index: 5; }
.hand-receipt {
  width: max-content;
  max-width: min(26rem, calc(100vw - 16px));
  padding: .32em .72em;
  border: 1px solid #a68056;
  border-inline-start: 3px solid #ffd792;
  border-radius: 3px;
  color: #ffe3ad;
  background: #302620;
  box-shadow: 0 2px 7px #140d0980;
  font-weight: 650;
  font-size: .9rem;
  overflow-wrap: anywhere;
}
.hand-chip {
  width: 15px; height: 15px;
  margin: -7.5px 0 0 -7.5px;
  border: 2px solid #ffe5ae;
  border-radius: 50%;
  background: #d6a04e;
  box-shadow: inset 0 0 0 2px #84532c, 0 2px 3px #27181170;
  animation: hand-bank-flight 420ms cubic-bezier(.26,.58,.33,1) both;
}
@keyframes hand-bank-flight {
  from { transform: translate(var(--from-x), var(--from-y)); }
  80% { opacity: 1; }
  to { transform: translate(0, 0); opacity: 0; }
}
