.processing-indicator {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 35, 27, .72);
  backdrop-filter: blur(3px);
}

.processing-indicator[hidden] {
  display: none;
}

.processing-card {
  width: min(360px, 100%);
  padding: 24px 22px 22px;
  border-radius: 18px;
  background: #fff;
  color: #17211d;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .28);
  text-align: center;
}

.processing-card strong {
  display: block;
  margin-top: 6px;
  color: #164e3b;
  font-size: 21px;
  line-height: 1.25;
}

.processing-card p {
  margin: 8px 0 0;
  color: #64726c;
  font-size: 14px;
  line-height: 1.5;
}

.bobber-scene {
  position: relative;
  width: 150px;
  height: 118px;
  margin: 0 auto;
  overflow: hidden;
}

.bobber-line {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 2px;
  height: 95px;
  background: #64726c;
  transform: translateX(-50%);
}

.bobber {
  position: absolute;
  z-index: 2;
  top: 43px;
  left: 50%;
  width: 38px;
  height: 48px;
  border: 2px solid #17211d;
  border-radius: 50%;
  overflow: hidden;
  transform: translateX(-50%);
  animation: bobber-strike 1.55s ease-in-out infinite;
}

.bobber-top,
.bobber-bottom {
  position: absolute;
  inset-inline: 0;
  height: 50%;
}

.bobber-top {
  top: 0;
  background: #d84231;
}

.bobber-bottom {
  bottom: 0;
  background: #fff;
}

.water-ring {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 79px;
  width: 72px;
  height: 18px;
  border: 2px solid #39799b;
  border-radius: 50%;
  opacity: 0;
  transform: translateX(-50%) scale(.45);
  animation: water-ripple 1.55s ease-out infinite;
}

.water-ring-two {
  animation-delay: .55s;
}

body.processing-active {
  overflow: hidden;
}

@keyframes bobber-strike {
  0%, 20%, 100% { transform: translate(-50%, 0) rotate(-2deg); }
  38% { transform: translate(-50%, 5px) rotate(3deg); }
  55% { transform: translate(-50%, 27px) rotate(0); }
  72% { transform: translate(-50%, 3px) rotate(-2deg); }
}

@keyframes water-ripple {
  0% { opacity: .7; transform: translateX(-50%) scale(.45); }
  75%, 100% { opacity: 0; transform: translateX(-50%) scale(1.45); }
}

@media (prefers-reduced-motion: reduce) {
  .bobber,
  .water-ring {
    animation-duration: 3.5s;
  }
}
