.task-celebration,
.task-celebration * {
  pointer-events: none !important;
}
.task-celebration {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  overflow: hidden;
  user-select: none;
}
.task-celebration__toast {
  position: absolute;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  padding: 13px 20px 13px 14px;
  border: 1px solid #d6e7df;
  border-radius: 20px;
  background: #f9fffc;
  color: #233e36;
  box-shadow: 0 12px 40px #264b3921;
  animation: task-celebration-toast 3.6s ease both;
}
.task-celebration__check {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 50%;
  background: #e0f2e9;
  color: #367d60;
  font-size: 23px;
  font-weight: 800;
}
.task-celebration__toast strong,
.task-celebration__toast div > span {
  display: block;
}
.task-celebration__toast strong { font-size: 16px; line-height: 1.4; }
.task-celebration__toast div > span { margin-top: 2px; font-size: 13px; line-height: 1.5; color: #476158; }
.task-celebration__confetti {
  position: absolute;
  left: 50%;
  bottom: 90px;
  width: 6px;
  height: 10px;
  border-radius: 2px;
  background: var(--confetti-color);
  opacity: 0;
  animation: task-celebration-confetti 1.15s cubic-bezier(.14,.61,.39,1) var(--confetti-delay) both;
}
.task-celebration__confetti:nth-child(3n) { width: 7px; height: 7px; border-radius: 50%; }
@keyframes task-celebration-toast {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(.98); }
  9%, 86% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, 4px); }
}
@keyframes task-celebration-confetti {
  0% { opacity: 0; transform: translate(0, 0) rotate(0); }
  15% { opacity: .95; }
  80% { opacity: .75; }
  100% { opacity: 0; transform: translate(var(--confetti-x), var(--confetti-y)) rotate(var(--confetti-spin)); }
}
.task-celebration--still .task-celebration__toast { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .task-celebration__toast { animation: none; }
  .task-celebration__confetti { display: none; animation: none; }
}
