.brand-block .is-level-up {
  animation: taskbaco-level-avatar-grow 680ms ease both;
}

#account-editor-form section.is-level-up {
  position: relative;
  overflow: hidden;
  animation: taskbaco-level-card-glow 980ms ease both;
}

#account-editor-form section.is-level-up::after {
  content: "LEVEL UP!";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.74);
  color: #5400c3;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  animation: taskbaco-level-burst 980ms ease both;
}

.taskbaco-level-effect {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.taskbaco-level-effect__panel {
  min-width: min(420px, calc(100vw - 32px));
  border: 1px solid rgba(84, 0, 195, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 70px rgba(35, 0, 91, 0.18);
  padding: 24px;
  text-align: center;
  animation: taskbaco-level-burst 980ms ease both;
  backdrop-filter: blur(8px);
}

.taskbaco-level-effect__label {
  color: #5400c3;
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
}

.taskbaco-level-effect__title {
  margin-top: 12px;
  color: #006970;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

@keyframes taskbaco-level-burst {
  0% {
    opacity: 0;
    transform: scale(0.78) translateY(18px);
  }
  22% {
    opacity: 1;
    transform: scale(1.08) translateY(0);
  }
  70% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(1.08) translateY(-18px);
  }
}

@keyframes taskbaco-level-avatar-grow {
  0% {
    transform: scale(0.9) rotate(-3deg);
    box-shadow: 0 4px 14px rgba(0, 105, 112, 0.12);
  }
  45% {
    transform: scale(1.16) rotate(3deg);
    box-shadow: 0 12px 30px rgba(0, 219, 233, 0.32);
  }
  100% {
    transform: scale(1) rotate(0deg);
    box-shadow: 0 0 0 rgba(0, 105, 112, 0);
  }
}

@keyframes taskbaco-level-card-glow {
  0%, 100% {
    box-shadow: 0 1px 2px rgba(16, 24, 24, 0.05);
  }
  45% {
    box-shadow: 0 18px 40px rgba(84, 0, 195, 0.16);
  }
}
